summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-11-19 14:00:05 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-11-19 14:00:05 +0100
commitb5a52bde0f7c24b5d263d279d9137ead88c41723 (patch)
tree1353dc364411b7731d3e1ebece6ffc2a9b54758c /bin
parent713cb59e65ac44eb02a09bbe4860863064a155af (diff)
harness: abort run on UART error
Diffstat (limited to 'bin')
-rwxr-xr-xbin/generate-dfa-benchmark.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/generate-dfa-benchmark.py b/bin/generate-dfa-benchmark.py
index c88a5f7..23aa627 100755
--- a/bin/generate-dfa-benchmark.py
+++ b/bin/generate-dfa-benchmark.py
@@ -240,6 +240,10 @@ def run_benchmark(application_file: str, pta: PTA, runs: list, arch: str, app: s
print('[RUN] has been unsynced for more than 30 seconds, assuming error. Retrying.')
sync_error = True
break
+ if harness.abort:
+ print('[RUN] harness encountered an error. Retrying')
+ sync_error = True
+ break
time.sleep(5)
slept += 5
print('[RUN] {:d}/{:d} ({:.0f}%), current benchmark at {:.0f}%'.format(run_offset, runs_total, run_offset * 100 / runs_total, slept * 100 / run_timeout))