Nils Asmussen has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/25662 )

Change subject: tests: call sys.exit() on failure in Simulation::run.
......................................................................

tests: call sys.exit() on failure in Simulation::run.

This patch is required for the p and v tests in the RISC-V test suite
to report success/failure.

Change-Id: Ic84255fc545f531402700c864010b4542d059c77
---
M configs/common/Simulation.py
1 file changed, 2 insertions(+), 0 deletions(-)



diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index eadc8de..da70086 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -1,4 +1,5 @@
 # Copyright (c) 2012-2013 ARM Limited
+# Copyright (c) 2020 Barkhausen Institut
 # All rights reserved
 #
 # The license below extends only to copyright in the software and shall
@@ -730,3 +731,4 @@

     if exit_event.getCode() != 0:
print("Simulated exit code not 0! Exit code is", exit_event.getCode())
+        sys.exit(exit_event.getCode())

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/25662
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ic84255fc545f531402700c864010b4542d059c77
Gerrit-Change-Number: 25662
Gerrit-PatchSet: 1
Gerrit-Owner: Nils Asmussen <nils.asmus...@barkhauseninstitut.org>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to