Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ff65c2f4
Commit
ff65c2f4
authored
Jan 20, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test the fail/skip exit codes of varnishtest
parent
ab72ccd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
a00000.vtc
bin/varnishtest/tests/a00000.vtc
+14
-0
No files found.
bin/varnishtest/tests/a00000.vtc
View file @
ff65c2f4
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment