do not invoke centos builds when re-testing
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 5 May 2008 09:25:23 +0000 (09:25 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 5 May 2008 09:25:23 +0000 (09:25 +0000)
scripts/all-builds.sh

index 065805c..55ce3a4 100755 (executable)
@@ -78,19 +78,22 @@ done
 
 ############################## 4.2/centos5
 # centos5 : for both archs, make the vserver rpms
-f=centos5
-for d in $TRUNK_DISTRO ; do
-    for bits in $BITS ; do
-       p=linux${bits}
-       s=$(shortname $d)
-       buildname="@DATE@--tr${s}-c5vs-${bits}"
-#      buildname="${d}-4.2-rc2.1lab-${f}-${bits}"
-       command="/root/bin/vbuild-nightly.sh -m onelab-build@one-lab.org \
+# does not test, so skip if test is requested
+if [ -z "$TEST" ] ; then
+    f=centos5
+    for d in $TRUNK_DISTRO ; do
+       for bits in $BITS ; do
+           p=linux${bits}
+           s=$(shortname $d)
+           buildname="@DATE@--tr${s}-c5vs-${bits}"
+#          buildname="${d}-4.2-rc2.1lab-${f}-${bits}"
+           command="/root/bin/vbuild-nightly.sh -m onelab-build@one-lab.org \
            -d $d -p $p -f $f -t ${d}-tags-4.2.mk \
            -b $buildname -B vserver"
-       run $command
+           run $command
+       done
     done
-done
+fi
 
 ############################## TRUNK
 # raw - std planetlab x f8 x 32bits for deploying on alpha nodes