]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-run-job: remove save/restore dependency on local migration support
authorWei Liu <wei.liu2@citrix.com>
Sun, 8 Feb 2015 15:44:31 +0000 (15:44 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 30 Jul 2015 14:22:13 +0000 (15:22 +0100)
Since we've introduced different checks for save / restore and local
migration, it's possible to run save / restore tests without running
local migration tests.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sg-run-job

index af035d32838f4d3a25fd1dd8f9760364833c2fb0..c34ad5b6b38e69d9410eeedd6097400b9cbf6f9e 100755 (executable)
@@ -313,13 +313,20 @@ proc run-job/test-pair {} {
 proc test-guest-migr {g} {
     set to_reap [spawn-ts . = ts-migrate-support-check + host $g 1]
     set can_migrate [reap-ts $to_reap]
-    if {!$can_migrate} return
+    set to_reap [spawn-ts . = ts-saverestore-support-check + host $g]
+    set can_saverestore [reap-ts $to_reap]
 
     foreach iteration {{} .2} {
-        run-ts . =$iteration ts-guest-saverestore + host $g
-        run-ts . =$iteration ts-guest-localmigrate + host $g
+        if {$can_saverestore} {
+            run-ts . =$iteration ts-guest-saverestore + host $g
+        }
+        if {$can_migrate} {
+            run-ts . =$iteration ts-guest-localmigrate + host $g
+        }
+    }
+    if {$can_migrate} {
+        run-ts . = ts-guest-localmigrate x10 + host $g
     }
-    run-ts . = ts-guest-localmigrate x10 + host $g
 }
 
 proc test-guest {g} {