equal
deleted
inserted
replaced
937 if k in t: |
937 if k in t: |
938 break |
938 break |
939 else: |
939 else: |
940 return ignore("doesn't match keyword") |
940 return ignore("doesn't match keyword") |
941 |
941 |
942 if not lctest.startswith("test-"): |
942 if not os.path.basename(lctest).startswith("test-"): |
943 return skip("not a test file") |
943 return skip("not a test file") |
944 for ext, func, out in testtypes: |
944 for ext, func, out in testtypes: |
945 if lctest.endswith(ext): |
945 if lctest.endswith(ext): |
946 runner = func |
946 runner = func |
947 ref = os.path.join(TESTDIR, test + out) |
947 ref = os.path.join(TESTDIR, test + out) |
1195 args = stdout.strip('\0').split('\0') |
1195 args = stdout.strip('\0').split('\0') |
1196 else: |
1196 else: |
1197 args = os.listdir(".") |
1197 args = os.listdir(".") |
1198 |
1198 |
1199 tests = [t for t in args |
1199 tests = [t for t in args |
1200 if t.startswith("test-") |
1200 if os.path.basename(t).startswith("test-") |
1201 and (t.endswith(".py") or t.endswith(".t"))] |
1201 and (t.endswith(".py") or t.endswith(".t"))] |
1202 |
1202 |
1203 if options.random: |
1203 if options.random: |
1204 random.shuffle(tests) |
1204 random.shuffle(tests) |
1205 else: |
1205 else: |
1206 # keywords for slow tests |
1206 # keywords for slow tests |