Fix a bug with alloy.py constantly throwing an exception
This commit is contained in:
1
alloy.py
1
alloy.py
@@ -377,6 +377,7 @@ def validation_run(only, only_targets, reference_branch, number, notify, update,
|
|||||||
print_debug("\n\nStability validation run\n\n", False, "")
|
print_debug("\n\nStability validation run\n\n", False, "")
|
||||||
stability = options_for_drivers()
|
stability = options_for_drivers()
|
||||||
# stability constant options
|
# stability constant options
|
||||||
|
stability.save_bin = False
|
||||||
stability.random = False
|
stability.random = False
|
||||||
stability.ispc_flags = ""
|
stability.ispc_flags = ""
|
||||||
stability.compiler_exe = None
|
stability.compiler_exe = None
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ def run_command(cmd):
|
|||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
except:
|
except:
|
||||||
print_debug("ERROR: The child (%s) raised an esception: %s\n" % (cmd, sys.exc_info()[1]), s, run_tests_log)
|
print_debug("ERROR: The child (%s) raised an exception: %s\n" % (cmd, sys.exc_info()[1]), s, run_tests_log)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
out = sp.communicate()
|
out = sp.communicate()
|
||||||
@@ -347,7 +347,8 @@ def run_tasks_from_queue(queue, queue_ret, queue_skip, total_tests_arg, max_test
|
|||||||
try:
|
try:
|
||||||
(compile_error, run_error) = run_test(filename)
|
(compile_error, run_error) = run_test(filename)
|
||||||
except:
|
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:
|
if compile_error != 0:
|
||||||
compile_error_files += [ filename ]
|
compile_error_files += [ filename ]
|
||||||
|
|||||||
Reference in New Issue
Block a user