(no commit message)
authorSapan Bhatia <sapanb@cs.princeton.edu>
Mon, 26 Jan 2009 19:59:08 +0000 (19:59 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Mon, 26 Jan 2009 19:59:08 +0000 (19:59 +0000)
qaapi/qa/tests/node/vsys_launch.pl

index f9fb954..47eee8e 100755 (executable)
@@ -12,6 +12,13 @@ else {
        $prefix="pl";
 }
 
+my $timeout=600;
+
+until ((-f "/var/run/vservers/pl_netflow" && -d "/home/pl_netflow") || ($timeout==0)) {sleep (15);print "Waiting for pl_netflow to show up...\n";$timeout-=15;}
+
+if (!$timeout) {
+    die ("Timed out waiting for pl_netflow to appear\n");
+}
 
 my $slice="$prefix"."_netflow";
 my $slicedir="/vservers/$slice";