Fix a bug with alloy.py constantly throwing an exception

This commit is contained in:
Anton Mitrokhin
2014-07-08 12:20:25 +04:00
parent c6ef1cab79
commit 502acf97e7
2 changed files with 6 additions and 4 deletions

View File

@@ -377,6 +377,7 @@ def validation_run(only, only_targets, reference_branch, number, notify, update,
print_debug("\n\nStability validation run\n\n", False, "")
stability = options_for_drivers()
# stability constant options
stability.save_bin = False
stability.random = False
stability.ispc_flags = ""
stability.compiler_exe = None

View File

@@ -64,8 +64,8 @@ def run_command(cmd):
sp = subprocess.Popen(arg_list, stdin=None,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except:
print_debug("ERROR: The child (%s) raised an esception: %s\n" % (cmd, sys.exc_info()[1]), s, run_tests_log)
except:
print_debug("ERROR: The child (%s) raised an exception: %s\n" % (cmd, sys.exc_info()[1]), s, run_tests_log)
raise
out = sp.communicate()
@@ -320,7 +320,7 @@ def run_tasks_from_queue(queue, queue_ret, queue_skip, total_tests_arg, max_test
os.chdir(tmpdir)
else:
olddir = ""
compile_error_files = [ ]
run_error_files = [ ]
skip_files = [ ]
@@ -347,7 +347,8 @@ def run_tasks_from_queue(queue, queue_ret, queue_skip, total_tests_arg, max_test
try:
(compile_error, run_error) = run_test(filename)
except:
sys.exit(-1) # This is in case the child has unexpectedly died
print_debug("ERROR: run_test function raised an exception: %s\n" % (sys.exc_info()[1]), s, run_tests_log)
sys.exit(-1) # This is in case the child has unexpectedly died or some other exception happened
if compile_error != 0:
compile_error_files += [ filename ]