[master] 06108a1 Test what logexpect can't
Dridi Boukelmoune
dridi at varni.sh
Sat Feb 4 00:47:48 CET 2017
On Sat, Feb 4, 2017 at 12:42 AM, Federico Schwindt <fgsch at lodoss.net> wrote:
> Why not simply:
>
> shell -match "^$" {
> varnishlog -n ${v1_name} -d -g raw -I "Should not happen"
> }
>
> ?
>
> Same with m00027.vtc
As you may have guessed I'm not happy with the (slightly convoluted)
outcome. At least I was satisfied with knowing that "should not
happen" did not happen. I thought about trying a "negative" -match but
gave up.
I must say I like your trick better, it even fits in a single line:
shell -match "^$" {varnishlog -n ${v1_name} -d -g raw -I "Should not happen"}
Feel free to amend the tests.
Cheers
More information about the varnish-commit
mailing list