[master] 7f17cbec4 Configure jail in the test for UDS access so that it runs with VTEST.

Geoff Simmons geoff at uplex.de
Mon Jan 28 14:49:08 UTC 2019


commit 7f17cbec42c5ae8faafe8f589db75a9af4336079
Author: Geoff Simmons <geoff at uplex.de>
Date:   Mon Jan 28 15:48:03 2019 +0100

    Configure jail in the test for UDS access so that it runs with VTEST.

diff --git a/bin/varnishtest/tests/c00086.vtc b/bin/varnishtest/tests/c00086.vtc
index 2ab6350ee..62b6ba72d 100644
--- a/bin/varnishtest/tests/c00086.vtc
+++ b/bin/varnishtest/tests/c00086.vtc
@@ -58,7 +58,10 @@ server s2 -listen ${tmpdir}/dir/s1.sock {} -start
 
 shell { chmod go-rx ${tmpdir}/dir }
 
-varnish v8 -arg "-j unix,user=vcache" -vcl { backend b {.host="${bad_ip}";} }
+varnish v8 \
+	-jail "-junix,user=vcache,ccgroup=varnish,workuser=vcache" \
+	-vcl { backend b {.host="${bad_ip}";}
+}
 
 varnish v8 -cliexpect "(?s)Cannot stat:.+That was just a warning" \
 	{vcl.inline test "vcl 4.1; backend b {.path=\"${tmpdir}/dir/s1.sock\";}"}


More information about the varnish-commit mailing list