From c03c396dd96db1a839fd4cc4d15519719e2c5705 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 2 Oct 2019 16:50:05 +0200 Subject: runner: re-try mimosactl call if it failed --- lib/runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/runner.py b/lib/runner.py index 25e3519..3fa104b 100644 --- a/lib/runner.py +++ b/lib/runner.py @@ -143,7 +143,9 @@ class MIMOSAMonitor(SerialMonitor): cmd.append(subcommand) res = subprocess.run(cmd) if res.returncode != 0: - raise RuntimeError('{} returned {}'.format(' '.join(cmd), res.returncode)) + res = subprocess.run(cmd) + if res.returncode != 0: + raise RuntimeError('{} returned {}'.format(' '.join(cmd), res.returncode)) def _mimosacmd(self, opts): cmd = ['MimosaCMD'] -- cgit v1.2.3