Commit e5edb7cc authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Simplify "Should not happen" checks

Suggested by Federico.
parent e300b981
......@@ -34,11 +34,7 @@ varnish v1 -errvcl "Planned failure in vcl_init" {
logexpect l1 -wait
shell {
set -e
varnishlog -n ${v1_name} -d -g raw >v1.log
! grep "Should not happen" v1.log
}
shell -match "^$" {varnishlog -n ${v1_name} -d -g raw -I "Should not happen"}
varnish v1 -cliok "param.set nuke_limit 42"
......
......@@ -18,8 +18,4 @@ varnish v1 -errvcl "Missing dynamic backend address or port" {
}
}
shell {
set -e
varnishlog -n ${v1_name} -d -g raw >v1.log
! grep "Should not happen" v1.log
}
shell -match "^$" {varnishlog -n ${v1_name} -d -g raw -I "Should not happen"}
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