From: Amos Jeffries Date: Tue, 21 Dec 2010 00:43:53 +0000 (-0700) Subject: Author: Alex Rousskov X-Git-Tag: SQUID_3_1_10~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c34942f95dc0695cdd4bea43447d8d03d91d859;p=thirdparty%2Fsquid.git Author: Alex Rousskov TestBed: Prevent "chmod: cannot access btlayer..." errors during build tests. --- diff --git a/test-builds.sh b/test-builds.sh index b1e011fdec..1d0ff39946 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -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