do-test always downloads ipsec.sql
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 May 2008 05:51:12 +0000 (05:51 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 May 2008 05:51:12 +0000 (05:51 -0000)
testing/do-tests.in

index f6ff19f..0436dbe 100755 (executable)
@@ -469,13 +469,8 @@ do
                    $TESTRESULTDIR/${host}.$file  > /dev/null 2>&1
            done
 
-               if [ $SUBDIR = "sql" ]
-               then
-                       scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
-                       $TESTRESULTDIR/${host}.ipsec.sql  > /dev/null 2>&1
-               else
-                       touch $TESTRESULTDIR/${host}.ipsec.sql
-               fi
+           scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
+               $TESTRESULTDIR/${host}.ipsec.sql  > /dev/null 2>&1
 
            ssh $HOSTLOGIN ip xfrm policy \
                    > $TESTRESULTDIR/${host}.ip.policy 2>/dev/null
@@ -485,6 +480,7 @@ do
                    > $TESTRESULTDIR/${host}.ip.route 2>/dev/null
            ssh $HOSTLOGIN $IPTABLES -v -n -L \
                    > $TESTRESULTDIR/${host}.iptables 2>/dev/null
+           chmod a+r $TESTRESULTDIR/*
            cat >> $TESTRESULTDIR/index.html <<@EOF
     <h3>$host</h3>
       <table border="0" cellspacing="0" width="600">