From cc9be973cfd768c91ab252e30d19bc65710bfe9f Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Thu, 3 Dec 2020 12:34:53 +0100 Subject: [PATCH] Use $serialdev in desktop_terminal.pm not ttyS0 $serialdev is set in os-autoinst/testapi.pm required at least for ppc64le. Signed-off-by: Michel Normand --- tests/desktop_terminal.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/desktop_terminal.pm b/tests/desktop_terminal.pm index d495080c..989479b3 100644 --- a/tests/desktop_terminal.pm +++ b/tests/desktop_terminal.pm @@ -19,7 +19,7 @@ sub run { # if we can run something successfully, we're at a console; # we're reinventing assert_script_run instead of using it so # we can type safely - type_very_safely "ls && echo 'ls OK' > /dev/ttyS0\n"; + type_very_safely "ls && echo 'ls OK' > /dev/${serialdev}\n"; die "terminal command failed" unless defined wait_serial "ls OK"; }