runtest.py bug fixes.
Improved error handling, and added support for "size" and "package" arguments.
Removed deprecated runtest shell script.
diff --git a/testrunner/run_command.py b/testrunner/run_command.py
index 4449945..a98a943 100755
--- a/testrunner/run_command.py
+++ b/testrunner/run_command.py
@@ -58,10 +58,11 @@
start_time = time.time()
so = []
pid = []
- global _abort_on_error
+ global _abort_on_error, error_occurred
error_occurred = False
def Run():
+ global error_occurred
if return_output:
output_dest = subprocess.PIPE
else:
@@ -83,8 +84,8 @@
logger.Log(e)
so.append("ERROR")
error_occurred = True
- if pipe.returncode < 0:
- logger.SilentLog("Error: %s was terminated by signal %d" %(cmd,
+ if pipe.returncode != 0:
+ logger.SilentLog("Error: %s returned %d error code" %(cmd,
pipe.returncode))
error_occurred = True
@@ -111,9 +112,9 @@
time.sleep(0.1)
t.join()
-
+ output = "".join(so)
if _abort_on_error and error_occurred:
- raise errors.AbortError
+ raise errors.AbortError(msg=output)
return "".join(so)