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 <normand@linux.vnet.ibm.com>
This commit is contained in:
Michel Normand 2020-12-03 12:34:53 +01:00
parent a038423920
commit cc9be973cf

View File

@ -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";
}