]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 21 Dec 2010 00:43:53 +0000 (17:43 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 21 Dec 2010 00:43:53 +0000 (17:43 -0700)
TestBed: Prevent "chmod: cannot access btlayer..." errors during build tests.

test-builds.sh

index b1e011fdecee84cec823dd00bcd858959b22f627..1d0ff39946a250f25d8f46b1c27771b5d2712221 100755 (executable)
@@ -58,7 +58,9 @@ buildtest() {
     btlayer="bt${layer}"
     log=${btlayer}.log
     echo "TESTING: ${layer}"
-    chmod -R 777 ${btlayer}
+    if test -e ${btlayer}; then
+       chmod -R 777 ${btlayer};
+    fi
     rm -f -r ${btlayer} || ( echo "FATAL: Failed to prepare test build sandpit." ; exit 1 )
     mkdir ${btlayer}
     if test "${verbose}" = "yes" ; then