Commit ff65c2f4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Test the fail/skip exit codes of varnishtest

parent ab72ccd7
......@@ -25,3 +25,17 @@ shell -expect {__=barf} {
echo __=`cat __`
}
# Test a test failure
shell -exit 2 -expect {TEST _.vtc FAILED} {
echo varnishtest foo > _.vtc
echo 'shell {false}' >> _.vtc
exec varnishtest -v _.vtc || true
}
# Test a test skip
shell -exit 77 -expect {TEST _.vtc skipped} {
echo varnishtest foo > _.vtc
echo 'feature cmd false' >> _.vtc
exec varnishtest -v _.vtc || true
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment