Show More
@@ -198,6 +198,8 b' def parseargs():' | |||||
198 | help="enable Py3k warnings on Python 2.6+") |
|
198 | help="enable Py3k warnings on Python 2.6+") | |
199 | parser.add_option('--extra-config-opt', action="append", |
|
199 | parser.add_option('--extra-config-opt', action="append", | |
200 | help='set the given config opt in the test hgrc') |
|
200 | help='set the given config opt in the test hgrc') | |
|
201 | parser.add_option('--random', action="store_true", | |||
|
202 | help='run tests in random order') | |||
201 |
|
203 | |||
202 | for option, (envvar, default) in defaults.items(): |
|
204 | for option, (envvar, default) in defaults.items(): | |
203 | defaults[option] = type(default)(os.environ.get(envvar, default)) |
|
205 | defaults[option] = type(default)(os.environ.get(envvar, default)) | |
@@ -1248,6 +1250,9 b' def main():' | |||||
1248 |
|
1250 | |||
1249 | tests = args |
|
1251 | tests = args | |
1250 |
|
1252 | |||
|
1253 | if options.random: | |||
|
1254 | random.shuffle(tests) | |||
|
1255 | ||||
1251 | # Reset some environment variables to well-known values so that |
|
1256 | # Reset some environment variables to well-known values so that | |
1252 | # the tests produce repeatable output. |
|
1257 | # the tests produce repeatable output. | |
1253 | os.environ['LANG'] = os.environ['LC_ALL'] = os.environ['LANGUAGE'] = 'C' |
|
1258 | os.environ['LANG'] = os.environ['LC_ALL'] = os.environ['LANGUAGE'] = 'C' |
General Comments 0
You need to be logged in to leave comments.
Login now