Testsuite: raise exception when smoketest could not be executed

This commit is contained in:
Christian Poessinger 2019-12-28 00:38:55 +01:00
parent 160043ed50
commit e9f365536e

View File

@ -297,8 +297,8 @@ try:
elif i==1:
raise Exception('Set syntax failed :/')
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")
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')
log.info("Smoke test status")