Skip to content

Commit 8c97d46

Browse files
committed
Testsuite: T8375: do not run serial console GRUB tests without serial console
It does not make sense to test the serial console autodeteaction on a flavor which uses a VGA console like PROXMOX. If console_type is a VGA console, bail out early from the tests.
1 parent 8b27d22 commit 8c97d46

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/check-qemu-install

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,11 @@ def basic_cli_tests(c):
542542
lines = [l.strip() for l in c.before.splitlines() if l.strip()]
543543
console_type = lines[-1].decode('utf-8').strip() # e.g. ttyS
544544

545+
# We do only care for ttyS or ttyAMA console types, exit early
546+
# for VGA consoles
547+
if console_type == 'tty':
548+
return
549+
545550
c.sendline('cat /usr/share/vyos/flavor.json | jq -r ".console_num"')
546551
c.expect(op_mode_prompt)
547552
lines = [l.strip() for l in c.before.splitlines() if l.strip()]

0 commit comments

Comments
 (0)