[master] df3a54b tmpdir should always exist, start_test creates it.

Nils Goroll nils.goroll at uplex.de
Wed Apr 15 09:52:43 CEST 2015


commit df3a54b2c650739b241e6afb9f1b51bce8959ac7
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Apr 15 09:50:55 2015 +0200

    tmpdir should always exist, start_test creates it.

diff --git a/bin/varnishtest/tests/a00009.vtc b/bin/varnishtest/tests/a00009.vtc
index d76a6fe..b2b63dc 100644
--- a/bin/varnishtest/tests/a00009.vtc
+++ b/bin/varnishtest/tests/a00009.vtc
@@ -3,8 +3,8 @@ varnishtest "Code coverage of VCL compiler and RSTdump etc"
 shell "${varnishd} -b 127.0.0.1:80 -C -n ${tmpdir} > /dev/null 2>&1"
 shell "${varnishd} -x dumprstparam > /dev/null 2>&1"
 shell "${varnishd} -x dumprstvsl > /dev/null 2>&1"
-err_shell {VCL version declaration missing} "test -d  ${tmpdir} || mkdir ${tmpdir} ; echo 'bad vcl' >${tmpdir}/t.vcl ; ${varnishd} -f ${tmpdir}/t.vcl -n ${tmpdir} 2>&1"
-err_shell {VCL version declaration missing} "test -d  ${tmpdir} || mkdir ${tmpdir} ; echo 'bad vcl' >${tmpdir}/t.vcl ; ${varnishd} -C -f ${tmpdir}/t.vcl -n ${tmpdir} 2>&1"
+err_shell {VCL version declaration missing} "echo 'bad vcl' >${tmpdir}/t.vcl ; ${varnishd} -f ${tmpdir}/t.vcl -n ${tmpdir} 2>&1"
+err_shell {VCL version declaration missing} "echo 'bad vcl' >${tmpdir}/t.vcl ; ${varnishd} -C -f ${tmpdir}/t.vcl -n ${tmpdir} 2>&1"
 err_shell {-spersistent has been deprecated} "${varnishd} -spersistent 2>&1"
 err_shell {Unknown jail method "xyz"} "${varnishd} -jxyz 2>&1"
 err_shell {-j must be the first argument} "${varnishd} -jnone -jxyz 2>&1"



More information about the varnish-commit mailing list