Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/12052
Change subject: systemc: Record the test's return code in the output
directory.
......................................................................
systemc: Record the test's return code in the output directory.
verify.py will be able to use that value later to determine whether a
test was successful.
Change-Id: Ib499a4b6f202ee46e66e5de1b61a7e6309df9886
---
M src/systemc/tests/verify.py
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index cface47..eabdaf6 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -144,7 +144,14 @@
'--listener-mode=off',
config_path
])
- subprocess.check_call(cmd)
+ try:
+ subprocess.check_call(cmd)
+ except subprocess.CalledProcessError, error:
+ returncode = error.returncode
+ else:
+ returncode = 0
+ with open(os.path.join(test.m5out_dir(), 'returncode'), 'w')
as rc:
+ rc.write('%d\n' % returncode)
runnable = filter(lambda t: not t.compile_only, tests)
if args.j == 1:
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12052
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ib499a4b6f202ee46e66e5de1b61a7e6309df9886
Gerrit-Change-Number: 12052
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev