summaryrefslogtreecommitdiff
path: root/scripts/cli/test_system_display.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-07 16:34:09 +0200
committerChristian Breunig <christian@breunig.cc>2026-09-07 16:35:55 +0000
commita4ca1e5979fe9c795e1ca210dd881f611d7fef21 (patch)
tree9ba1ff36b81ab967390b6a319f4537c255b8ddbf /scripts/cli/test_system_display.py
parent16f1cf4579e3c1bf3a2639d54c6ae9e1ef163259 (diff)
downloadvyos-1x-a4ca1e5979fe9c795e1ca210dd881f611d7fef21.tar.gz
vyos-1x-a4ca1e5979fe9c795e1ca210dd881f611d7fef21.zip
smoketest: T9014: make configtest serial console image flavor agnostic
The configuration tests hardcoded "system console device ttyS0 speed 115200", which only holds for amd64, whereas arm64 images expose the UART as ttyAMA0, so loading these configs produced a diff against the assert data and the tests failed. Replace the hardcoded values in all config test inputs and their assert counterparts with the @SERIAL_DEVICE@ and @SERIAL_SPEED@ placeholders. The vyos-1x-smoketest postinst queries the image flavor and implants the real values once at install time, so the test runner needs no runtime patching. Migration script 31-to-32 now derives the serial device from the flavor, too, instead of assuming ttyS0. This can be observed during vyos-1x package installation while building the ISO image Setting up vyos-1x-smoketest (999.0-14834-g16f1cf457-dirty) ... ... I: Implanted serial console ttyS0,115200 into /usr/libexec/vyos/tests/configs
Diffstat (limited to 'scripts/cli/test_system_display.py')
0 files changed, 0 insertions, 0 deletions