[master] c348aa5c0 vtc: Revisit c109 to avoid symlink or chroot issues

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Jan 4 17:55:05 UTC 2022

commit c348aa5c00870c40058ad98e6809730a9c10096e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Jan 4 18:53:56 2022 +0100

    vtc: Revisit c109 to avoid symlink or chroot issues

diff --git a/bin/varnishtest/tests/c00109.vtc b/bin/varnishtest/tests/c00109.vtc
index 7c4a7463d..aff4b4ab4 100644
--- a/bin/varnishtest/tests/c00109.vtc
+++ b/bin/varnishtest/tests/c00109.vtc
@@ -3,11 +3,16 @@ varnishtest "cc_command and cc_warnings"
 varnish v1 -cliok {param.set debug +vcl_keep}
 varnish v1 -cliok {param.set cc_warnings hello}
 varnish v1 -cliok {param.set cc_command << EOF
-! printf 'd="%%s" D="%%s" w="%%s" n="%%s"' '%d' '%D' '%w' '%n' >world
+printf 'd="%%s" D="%%s" w="%%s"' '%d' '%D' '%w' >world
+printf '%%s' '%n' >v1_name
 varnish v1 -errvcl "VCL compilation failed" "backend be none;"
-shell -match {d=".+" D=".+hello.+" w="hello" n="${v1_name}"} {
+shell -match {d=".+" D=".+hello.+" w="hello"} {
 	exec cat v1/vcl_*/world
+shell -expect "Value is: hello" {
+	exec varnishadm -n "$(cat v1/vcl_*/v1_name)" param.show cc_warnings

More information about the varnish-commit mailing list