Two jobs should be enough for a collection and speed up testing.
authorZdeněk Šustr <sustr4@cesnet.cz>
Tue, 24 Aug 2010 14:39:19 +0000 (14:39 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Tue, 24 Aug 2010 14:39:19 +0000 (14:39 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-wild.sh

index ee1bd25..2d96120 100755 (executable)
@@ -223,26 +223,11 @@ Nodes = {
                OutputSandbox = { "std1.out", "std1.err" };
        ],
        [
-               Executable = "launch.sh";
+               Executable = "/bin/something-that-does-not-exist-$$";
                Arguments = "Ahoj, svete!";
                StdOutput = "std2.out";
                StdError = "std2.err";
                OutputSandbox = { "std2.out", "std2.err" };
-       ],
-       [
-               Executable = "launch.sh";
-               Arguments = "Ahoj, svete!";
-       ],
-       [
-               Executable = "/bin/something-that-does-not-exist";
-               Arguments = "Ahoj, svete!";
-               StdOutput = "std4.out";
-               StdError = "std4.err";
-               OutputSandbox = { "std4.out", "std4.err" };
-       ],
-       [
-               Executable = "launch.sh";
-               Arguments = "Ahoj, svete!";
        ]
 }
 
@@ -280,24 +265,6 @@ Nodes = {
        [
                Executable = "launch.sh";
                Arguments = "Ahoj, svete!";
-               StdOutput = "std2.out";
-               StdError = "std2.err";
-               OutputSandbox = { "std2.out", "std2.err" };
-       ],
-       [
-               Executable = "launch.sh";
-               Arguments = "Ahoj, svete!";
-       ],
-       [
-               Executable = "launch.sh";
-               Arguments = "Ahoj, svete!";
-               StdOutput = "std4.out";
-               StdError = "std4.err";
-               OutputSandbox = { "std4.out", "std4.err" };
-       ],
-       [
-               Executable = "launch.sh";
-               Arguments = "Ahoj, svete!";
        ]
 };
 
@@ -483,7 +450,7 @@ for ((i=0; i<${#job_cats[*]}; i++)); do
        done_coll)
                echo -en "[wild] fetching output from $jobid${lf}"
                glite-wms-job-status -v 0 "$jobid" | $SYS_GREP '^ .*https:' | $SYS_SED 's/.*https:/https:/' > $$.subjobs.log
-               if test x"`wc -l $$.subjobs.log | $SYS_SED 's/\s*\([0-9]*\).*/\1/'`" != x"5"; then
+               if test x"`wc -l $$.subjobs.log | $SYS_SED 's/\s*\([0-9]*\).*/\1/'`" != x"2"; then
                        print_error "error, some offspring of $jobid were spawned or eaten!" && test_failed
                        fail=$TEST_ERROR
                fi