Skip to contentSkip to conversation

scripts/runfvp: fix silent failure when FVP is missing

PATCH New Roger Knecht 1 participant 1 message Apr 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/runfvp: fix silent failure when FVP is missing

Print an error message if the FVP binary cannot be found, instead of failing silently.

---
 scripts/runfvp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/runfvp +2 -1
index 135cf04d..ceae18ae 100755
@@ -77,7 +77,8 @@ def start_fvp(args, fvpconf, extra_args):
         else:
             for line in fvp.stdout:
                 print(line.strip().decode(errors='ignore'))
-
+    except FileNotFoundError as e:
+        logger.error(f"FVP executable not found ({e})")
     finally:
         return fvp.stop()