[honister,7/9] runfvp: fix undefined variable in terminal selection login

Message ID 20220426123359.22873-8-harry.moulton@arm.com
State New
Headers show
Series arm-bsp/machine: Backport runfvp config for Corstone1000 and update runfvp script | expand

Commit Message

harry.moulton@arm.com April 26, 2022, 12:33 p.m. UTC
From: Ross Burton <ross.burton@arm.com>

Since 10e60cc the terminal_map doesn't exist, this piece of code wasn't

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
 scripts/runfvp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/scripts/runfvp b/scripts/runfvp
index ca1e797c..c20455fd 100755
--- a/scripts/runfvp
+++ b/scripts/runfvp
@@ -182,7 +182,7 @@  def parse_config(args, config):
             # TODO if raw mode
             # cli.extend(["--parameter", f"{terminal}.mode=raw"])
             # TODO put name into terminal title
-            cli.extend(["--parameter", f"{terminal}.terminal_command={terminal_map[args.terminals]}"])
+            cli.extend(["--parameter", f"{terminal}.terminal_command={terminals[args.terminals].command}"])
             # Disable terminal
             cli.extend(["--parameter", f"{terminal}.start_telnet=0"])