diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-04 20:12:49 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-04 20:12:49 +0100 |
commit | baa7ab9fa106b09e33b1bdf706630ddd204010a2 (patch) | |
tree | 4c7a992d6e4f2e4f8c4a83f334a119d381a2317d /scripts | |
parent | a3afff0a41c62c9c20015cba5685d2073c46ab18 (diff) | |
download | vyos-build-baa7ab9fa106b09e33b1bdf706630ddd204010a2.tar.gz vyos-build-baa7ab9fa106b09e33b1bdf706630ddd204010a2.zip |
Testsuite: check for smoketest error
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-qemu-install | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 0c443f18..a6cc9b60 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -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() |