fix bug in run_tests.py
This commit is contained in:
@@ -98,10 +98,10 @@ def run_tests(toolset, tests, features, options, test_dir):
|
|||||||
# parse out the toolset version from the xml file
|
# parse out the toolset version from the xml file
|
||||||
compiler = ''
|
compiler = ''
|
||||||
compiler_version = ''
|
compiler_version = ''
|
||||||
|
command = ''
|
||||||
|
|
||||||
# make this parse the actual test to pick up the time
|
# make this parse the actual test to pick up the time
|
||||||
# spent runnin the test
|
# spent runnin the test
|
||||||
if not toolset_found:
|
|
||||||
try:
|
try:
|
||||||
dom = et.parse(xml_file)
|
dom = et.parse(xml_file)
|
||||||
|
|
||||||
@@ -119,7 +119,6 @@ def run_tests(toolset, tests, features, options, test_dir):
|
|||||||
|
|
||||||
if compiler != '' and compiler_version != '':
|
if compiler != '' and compiler_version != '':
|
||||||
toolset = compiler + '-' + compiler_version
|
toolset = compiler + '-' + compiler_version
|
||||||
toolset_found = True
|
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
try: os.unlink(xml_file)
|
try: os.unlink(xml_file)
|
||||||
|
Reference in New Issue
Block a user