[master] 06108a1 Test what logexpect can't

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Feb 3 17:39:05 CET 2017


commit 06108a1930009b7186f776ba279a81d3ad3399e3
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Feb 3 15:36:49 2017 +0100

    Test what logexpect can't
    
    We also don't want the test to pass if varnishlog failed.

diff --git a/bin/varnishtest/tests/m00022.vtc b/bin/varnishtest/tests/m00022.vtc
index a9863d6..11ba4cf 100644
--- a/bin/varnishtest/tests/m00022.vtc
+++ b/bin/varnishtest/tests/m00022.vtc
@@ -34,6 +34,12 @@ 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
+}
+
 varnish v1 -cliok "param.set nuke_limit 42"
 
 varnish v1 -errvcl "nuke_limit is not the answer." {



More information about the varnish-commit mailing list