attempt to fix tests on f10
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 1 Oct 2009 06:16:42 +0000 (06:16 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 1 Oct 2009 06:16:42 +0000 (06:16 +0000)
vbuild-init-vserver.sh

index 4c71dd2..8da5046 100755 (executable)
@@ -182,13 +182,9 @@ function setup_vserver () {
     fi
 
     # start the vserver so we can do the following operations
-#    rm -f /tmp/go*
-#    echo -n ' about to start - WAITING for /tmp/go1' ; while true ; do [ -f /tmp/go1 ] && break || : ; done
-    $personality vserver $VERBOSE $vserver start
-#    echo -n ' started - WAITING for /tmp/go2' ; while true ; do [ -f /tmp/go2 ] && break || : ; done
-#if true ; then 
-#    echo SKIPPING for debug --- vserver was started
-#else
+    # redirect out/err to protect against the vserver's init sequence getting stalled 
+    # mostly used for f10 vservers created remotely through ssh
+    $personality vserver $VERBOSE $vserver start >& /dev/null
     [ "$pkg_method" = "yum" ] && $personality vserver $VERBOSE $vserver exec sh -c "rm -f /var/lib/rpm/__db*"
     [ "$pkg_method" = "yum" ] && $personality vserver $VERBOSE $vserver exec rpm --rebuilddb
 
@@ -209,8 +205,6 @@ function setup_vserver () {
     # and /etc/hosts for at least localhost
     [ -f /vservers/$vserver/etc/hosts ] || echo "127.0.0.1 localhost localhost.localdomain" > /vservers/$vserver/etc/hosts
 
-#fi
-
 }
 
 function devel_or_vtest_tools () {