From: Amos Jeffries Date: Sun, 8 Feb 2009 05:57:17 +0000 (+1300) Subject: TestBed: silence warnings from make on clean directory X-Git-Tag: SQUID_3_2_0_1~1203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6f9e7b9d7303c18444076c46a267ffea1848d5c;p=thirdparty%2Fsquid.git TestBed: silence warnings from make on clean directory --- diff --git a/test-suite/buildtest.sh b/test-suite/buildtest.sh index b7f6c3671a..87561671a8 100755 --- a/test-suite/buildtest.sh +++ b/test-suite/buildtest.sh @@ -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.