Cleared state of the cancelled collection is not intuitive, but be it OK for now...
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 May 2010 10:53:25 +0000 (10:53 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 May 2010 10:53:25 +0000 (10:53 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-wild.sh

index 9460d9b..ee1bd25 100755 (executable)
@@ -437,8 +437,12 @@ for ((i=0;i<n;i++)); do
                if test x"$expected_status" = x"$status"; then
                        printf "[wild] $jobid: '$status' OK (${job_cats[$i]})" && test_done
                else
-                       print_error "$jobid: expected '$expected_status', got '$status'!" && test_failed
-                       fail=$TEST_ERROR
+                       if test x"${job_cats[$i]}" = x"cancel_coll" -a x"$status" = x"Cleared"; then
+                               printf "[wild] $jobid: expected '$expected_status', got '$status' (${job_cats[$i]}), so be it!" && test_done
+                       else
+                               print_error "$jobid: expected '$expected_status', got '$status'!" && test_failed
+                               fail=$TEST_ERROR
+                       fi
                fi
 
                if test x"$expected_components" = x"$components"; then