]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: tighten some testing procedures.
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Jul 2009 13:27:58 +0000 (01:27 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Jul 2009 13:27:58 +0000 (01:27 +1200)
 * display last 20 lines of test result on failure
   we want to see the real error plus, not just "make Error 1" messages
 * use chmod to improve cleanup removal after (un)install test failures

test-builds.sh

index 45f368750e3936f29f13e0efd9e957deb77a7bd9..613070969b016966ed6f24e187d6f735848a1025 100755 (executable)
@@ -76,6 +76,7 @@ buildtest() {
 
     if test "${cleanup}" = "yes" ; then
        echo "REMOVE DATA: ${btlayer}"
+       chmod -R 777 ${btlayer}
        rm -f -r ${btlayer}
     fi
 
@@ -86,7 +87,7 @@ buildtest() {
        fi
     else
         echo "Build Failed. Last log lines are:"
-        tail -5 ${log}
+        tail -20 ${log}
        globalResult=1
     fi