summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-11-02 10:10:43 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-11-02 10:10:43 +0100
commitdd33d9b36dd071d04ccba5a000e9562c2b6a4a31 (patch)
tree3c40a1b5a35b8656870874f26747fab321e23256
parentdf04f15d9132ec6b2781edfccc5ad8d33dd3cdd9 (diff)
harness: redo benchmark when running out of sync
-rw-r--r--lib/harness.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/harness.py b/lib/harness.py
index de70ace..d1440db 100644
--- a/lib/harness.py
+++ b/lib/harness.py
@@ -264,17 +264,17 @@ class TransitionHarness:
transition_name = None
if self.pta:
transition_name = self.pta.transitions[transition_id].name
- print(
- "[HARNESS] benchmark id={:d} trace={:d}: transition #{:d} (ID {:d}, name {}) is out of bounds".format(
+ self.abort = True
+ raise RuntimeError(
+ "Benchmark id={:d} trace={:d}: transition #{:d} (ID {:d}, name {}) is out of bounds. Offending line: {}".format(
0,
self.trace_id,
self.current_transition_in_trace,
transition_id,
transition_name,
+ line,
)
)
- print(" Offending line: {}".format(line))
- return
if log_data_target["isa"] != "transition":
self.abort = True
raise RuntimeError(