]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: silence warnings from make on clean directory
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Feb 2009 05:57:17 +0000 (18:57 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Feb 2009 05:57:17 +0000 (18:57 +1300)
test-suite/buildtest.sh

index b7f6c3671ab49536a54385841ce019480e998fe8..87561671a821c37c96b338ca40c09b6ea398052b 100755 (executable)
@@ -25,8 +25,12 @@ fi
 
 #
 # empty all the existing code, reconfigure and builds test code
-
-make -k distclean || echo "distclean done. errors are unwanted but okay here."
+# but skip if we have no files to remove.
+# AYJ: 1 because we already created the build log
+FILECOUNT=`ls -1 | grep -c .`
+if test "$FILECOUNT" != "1" ; then
+  make -k distclean || echo "distclean done. errors are unwanted but okay here."
+fi
 
 #
 # above command currently encounters dependancy problems on cleanup.