Show More
@@ -983,6 +983,27 b' def main():' | |||||
983 |
|
983 | |||
984 | checktools() |
|
984 | checktools() | |
985 |
|
985 | |||
|
986 | if len(args) == 0: | |||
|
987 | args = os.listdir(".") | |||
|
988 | args.sort() | |||
|
989 | ||||
|
990 | tests = [] | |||
|
991 | skipped = [] | |||
|
992 | for test in args: | |||
|
993 | if (test.startswith("test-") and '~' not in test and | |||
|
994 | ('.' not in test or test.endswith('.py') or | |||
|
995 | test.endswith('.bat') or test.endswith('.t'))): | |||
|
996 | if not os.path.exists(test): | |||
|
997 | skipped.append(test) | |||
|
998 | else: | |||
|
999 | tests.append(test) | |||
|
1000 | if not tests: | |||
|
1001 | for test in skipped: | |||
|
1002 | print 'Skipped %s: does not exist' % test | |||
|
1003 | print "# Ran 0 tests, %d skipped, 0 failed." % len(skipped) | |||
|
1004 | return | |||
|
1005 | tests = tests + skipped | |||
|
1006 | ||||
986 | # Reset some environment variables to well-known values so that |
|
1007 | # Reset some environment variables to well-known values so that | |
987 | # the tests produce repeatable output. |
|
1008 | # the tests produce repeatable output. | |
988 | os.environ['LANG'] = os.environ['LC_ALL'] = os.environ['LANGUAGE'] = 'C' |
|
1009 | os.environ['LANG'] = os.environ['LC_ALL'] = os.environ['LANGUAGE'] = 'C' | |
@@ -1069,20 +1090,6 b' def main():' | |||||
1069 |
|
1090 | |||
1070 | COVERAGE_FILE = os.path.join(TESTDIR, ".coverage") |
|
1091 | COVERAGE_FILE = os.path.join(TESTDIR, ".coverage") | |
1071 |
|
1092 | |||
1072 | if len(args) == 0: |
|
|||
1073 | args = os.listdir(".") |
|
|||
1074 | args.sort() |
|
|||
1075 |
|
||||
1076 | tests = [] |
|
|||
1077 | for test in args: |
|
|||
1078 | if (test.startswith("test-") and '~' not in test and |
|
|||
1079 | ('.' not in test or test.endswith('.py') or |
|
|||
1080 | test.endswith('.bat') or test.endswith('.t'))): |
|
|||
1081 | tests.append(test) |
|
|||
1082 | if not tests: |
|
|||
1083 | print "# Ran 0 tests, 0 skipped, 0 failed." |
|
|||
1084 | return |
|
|||
1085 |
|
||||
1086 | vlog("# Using TESTDIR", TESTDIR) |
|
1093 | vlog("# Using TESTDIR", TESTDIR) | |
1087 | vlog("# Using HGTMP", HGTMP) |
|
1094 | vlog("# Using HGTMP", HGTMP) | |
1088 | vlog("# Using PATH", os.environ["PATH"]) |
|
1095 | vlog("# Using PATH", os.environ["PATH"]) |
General Comments 0
You need to be logged in to leave comments.
Login now