make it possible to abort regression tests

This commit is contained in:
Arvid Norberg 2013-06-21 02:15:47 +00:00
parent 6b6c06fa0b
commit 9b97a96ab7
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ def run_tests(toolset, tests, features, options, test_dir, time_limit, increment
else: sys.stdout.write('X')
sys.stdout.flush()
except:
# need this to make child processes exit
sys.exit(1)
finally:
try: os.unlink(xml_file)
except: pass