mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Testsuite: check for smoketest error
This commit is contained in:
parent
a3afff0a41
commit
baa7ab9fa1
@ -293,6 +293,7 @@ try:
|
||||
i = child.expect(['\n +Invalid command:',
|
||||
'\n +Set failed',
|
||||
'No such file or directory',
|
||||
'SMOKETEST FAILED!',
|
||||
r'\n\S+@\S+[$#]'], timeout=1800)
|
||||
|
||||
if i==0:
|
||||
@ -302,7 +303,10 @@ try:
|
||||
elif i==2:
|
||||
log.error("Did not find VyOS smoketest, this should be an exception")
|
||||
raise Exception("WTF? did not find VyOS smoketest, this should be an exception")
|
||||
cr(c, '/usr/bin/vyos-smoketest')
|
||||
elif i==3:
|
||||
log.error("Smoketest failed with an non-zero exitcode")
|
||||
|
||||
cr(c, '/usr/bin/vyos-smoketest || echo "SMOKETEST FAILED!"')
|
||||
|
||||
log.info("Smoke test status")
|
||||
#data = c.before.decode()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user