summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2026-07-23 14:43:20 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2026-07-23 21:50:46 +0200
commitb8b965b9e32b1f586b2c04bae204b6edc119c002 (patch)
tree42fff19e1ae25ab00ec29d3138fec9d32e4172ae /scripts
parent07f6e41261d607deadbc003b2b929bd24802958f (diff)
downloadvyos-build-b8b965b9e32b1f586b2c04bae204b6edc119c002.tar.gz
vyos-build-b8b965b9e32b1f586b2c04bae204b6edc119c002.zip
T9124: Fix smoketest file check
The prior expect of 'No such file or directory' can prevent smoketests from completing if test fails with that same error
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 8d705674..62896266 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -1367,18 +1367,17 @@ try:
log.info('Smoketests will be run using vyconfd/vyos-commitd')
log.info('Executing VyOS smoketests')
+ c.sendline('ls /usr/bin/vyos-smoketest 2>/dev/null')
+ c.expect('/usr/bin/vyos-smoketest')
+ c.expect(op_mode_prompt)
c.sendline('/usr/bin/vyos-smoketest')
i = c.expect(['\n +Invalid command:', '\n +Set failed',
- 'No such file or directory', r'\n\S+@\S+[$#]'], timeout=test_timeout)
+ r'\n\S+@\S+[$#]'], timeout=test_timeout)
if i == 0:
raise Exception('Invalid command detected')
if i == 1:
raise Exception('Set syntax failed :/')
- if i == 2:
- tmp = '(W)hy (T)he (F)ace? VyOS smoketest not found!'
- log.error(tmp)
- raise Exception(tmp)
c.sendline('echo EXITCODE:$\x16?')
i = c.expect(['EXITCODE:0', 'EXITCODE:\d+'])