make sure to always clean up the bjam xml file
This commit is contained in:
@@ -80,6 +80,7 @@ def svn_info():
|
||||
|
||||
def run_tests(toolset, tests, features, options, test_dir, time_limit, incremental):
|
||||
xml_file = 'bjam_build.%d.xml' % random.randint(0, 100000)
|
||||
try:
|
||||
|
||||
results = {}
|
||||
toolset_found = False
|
||||
@@ -124,9 +125,6 @@ def run_tests(toolset, tests, features, options, test_dir, time_limit, increment
|
||||
toolset = compiler + '-' + compiler_version
|
||||
except: pass
|
||||
|
||||
try: os.unlink(xml_file)
|
||||
except: pass
|
||||
|
||||
r = { 'status': p.returncode, 'output': output, 'command': command }
|
||||
results[t + '|' + features] = r
|
||||
|
||||
@@ -143,6 +141,10 @@ def run_tests(toolset, tests, features, options, test_dir, time_limit, increment
|
||||
else: sys.stdout.write('X')
|
||||
sys.stdout.flush()
|
||||
|
||||
finally:
|
||||
try: os.unlink(xml_file)
|
||||
except: pass
|
||||
|
||||
return (toolset, results)
|
||||
|
||||
def print_usage():
|
||||
|
Reference in New Issue
Block a user