From e6402fb8f6c6d66f73b998ae75d62ca6f307d313 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 16 Sep 2008 00:06:56 +0000 Subject: [PATCH] Fixed vsys_launch script --- qaapi/qa/tests/node/vsys_launch.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qaapi/qa/tests/node/vsys_launch.pl b/qaapi/qa/tests/node/vsys_launch.pl index 76bfc86..671b551 100755 --- a/qaapi/qa/tests/node/vsys_launch.pl +++ b/qaapi/qa/tests/node/vsys_launch.pl @@ -24,9 +24,10 @@ close $vsys_entry; chmod 0755,"/vsys/test"; # Check if it has shown up +sleep(2); -(-f "/vservers/pl_netflow/test.in") || die ("in file didn't show up in the slice"); -(-f "/vservers/pl_netflow/test.out") || die ("out file didn't show up in the slice"); +(-p "/vservers/$slice/vsys/test.in") || die ("in file didn't show up in the slice"); +(-p "/vservers/$slice/vsys/test.out") || die ("out file didn't show up in the slice"); # OK, SUBTEST #1 SUCCEEDED print "[SUCCESS] The new entried appeared OK\n"; @@ -34,7 +35,9 @@ print "[SUCCESS] The new entried appeared OK\n"; # Subtest #2 print "Multiple-connection test...\t"; -system("su -c support/vsys_conctest pl_netflow -"); +mkdir ("/vservers/$slice/support"); +system("cp vsys_conctest /vservers/$slice/support"); +system("su -c '/support/vsys_conctest $slice' $slice -"); ($? && die ("[FAILED] Multiple-connection test failed\n")); -- 2.47.0