Fix desktop_terminal command check (thanks defolos)

This check wasn't working, the test passed whatever wait_serial
found. This version suggested by defolos works, I checked.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-10-15 16:25:26 -07:00
parent 33c290d15a
commit bd7d3cd663

View File

@ -20,7 +20,7 @@ sub run {
# 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";
wait_serial "ls OK" || die "terminal command failed";
die "terminal command failed" unless defined wait_serial "ls OK";
}
sub test_flags {