]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
sg-run-job: Unroll test-guest-migr iteration loop
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 27 Nov 2015 16:34:39 +0000 (16:34 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 30 Nov 2015 17:26:12 +0000 (17:26 +0000)
We are going to want to do something different on the 2nd iteration,
so do away with the loop.  No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
sg-run-job

index d9b2e38c7c01694549f80d530258a024331cf96d..4f6b43a53edb6e4b1047dae42db0ae8e34bbe475 100755 (executable)
@@ -364,13 +364,17 @@ proc test-guest-migr {g} {
     set to_reap [spawn-ts . = ts-saverestore-support-check + host $g]
     set can_saverestore [reap-ts $to_reap]
 
-    foreach iteration {{} .2} {
-        if {$can_saverestore} {
-            run-ts . =$iteration ts-guest-saverestore + host $g
-        }
-        if {$can_migrate} {
-            run-ts . =$iteration ts-guest-localmigrate + host $g
-        }
+    if {$can_saverestore} {
+       run-ts . = ts-guest-saverestore + host $g
+    }
+    if {$can_migrate} {
+        run-ts . = ts-guest-localmigrate + host $g
+    }
+    if {$can_saverestore} {
+       run-ts . =.2 ts-guest-saverestore + host $g
+    }
+    if {$can_migrate} {
+        run-ts . =.2 ts-guest-localmigrate + host $g
     }
     if {$can_migrate} {
         run-ts . = ts-guest-localmigrate x10 + host $g