Common defs come from different subsystems
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 27 Feb 2012 12:57:49 +0000 (12:57 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 27 Feb 2012 12:57:49 +0000 (12:57 +0000)
org.glite.testsuites.ctb/gridsite/tests/gridsite-test-packaging.sh

index 55f48d3..12adeba 100755 (executable)
@@ -50,9 +50,14 @@ EndHelpHeader
 # read common definitions and functions
 for COMMON in gridsite-common.sh lb-common.sh
 do
+       if [ [ "$COMMON" \< "l" ]; then 
+               SUBSYS="gridsite"
+       else 
+               SUBSYS="LB"
+       fi
         if [ ! -r ${COMMON} ]; then
                 printf "Downloading common definitions '${COMMON}'"
-                wget -O ${COMMON} http://jra1mw.cvs.cern.ch/cgi-bin/jra1mw.cgi/org.glite.testsuites.ctb/gridsite/tests/$COMMON?view=co > /dev/null
+                wget -O ${COMMON} http://jra1mw.cvs.cern.ch/cgi-bin/jra1mw.cgi/org.glite.testsuites.ctb/$SUBSYS/tests/$COMMON?view=co > /dev/null
                 if [ ! -r ${COMMON} ]; then
                         exit 2
                 else