Show More
@@ -38,6 +38,8 b' parser.add_option("-i", "--interactive",' | |||
|
38 | 38 | help="prompt to accept changed output") |
|
39 | 39 | parser.add_option("-j", "--jobs", type="int", |
|
40 | 40 | help="number of jobs to run in parallel") |
|
41 | parser.add_option("--keep-tmpdir", action="store_true", | |
|
42 | help="keep temporary directory after running tests (best used with --tmpdir)") | |
|
41 | 43 | parser.add_option("-R", "--restart", action="store_true", |
|
42 | 44 | help="restart at last error") |
|
43 | 45 | parser.add_option("-p", "--port", type="int", |
@@ -133,6 +135,7 b' def check_required_tools():' | |||
|
133 | 135 | print "WARNING: Did not find prerequisite tool: "+p |
|
134 | 136 | |
|
135 | 137 | def cleanup_exit(): |
|
138 | if not options.keep_tmpdir: | |
|
136 | 139 | if verbose: |
|
137 | 140 | print "# Cleaning up HGTMP", HGTMP |
|
138 | 141 | shutil.rmtree(HGTMP, True) |
@@ -398,6 +401,7 b' def run_one(test, skips):' | |||
|
398 | 401 | pass |
|
399 | 402 | |
|
400 | 403 | os.chdir(TESTDIR) |
|
404 | if not options.keep_tmpdir: | |
|
401 | 405 | shutil.rmtree(tmpd, True) |
|
402 | 406 | if skipped: |
|
403 | 407 | return None |
General Comments 0
You need to be logged in to leave comments.
Login now