]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
sg-run-job: Allow flight to specify recipe flag to disable migr tests
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 11 Jun 2018 13:09:35 +0000 (14:09 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Jun 2018 14:00:06 +0000 (15:00 +0100)
We want this because there is no sensible way to probe whether a
restricted qemu can cope with save/restore or migration.  So we will
want to disable it in flight construction (depending on Xen version,
eventually).

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

index 1355876fe3fcaa0cf0014f375adbe95df956144e..965e55d195f0343f5f89bc44c5e349f8929e2d8b 100755 (executable)
@@ -591,6 +591,9 @@ proc run-job/test-livepatch {} {
 }
 
 proc test-guest-migr {g} {
+    # guest is expected to be running and remains so
+    if {[recipe-flag nomigrate]} return
+
     set to_reap [spawn-ts . = ts-migrate-support-check + host $g 1]
     set can_migrate [reap-ts $to_reap]
     set to_reap [spawn-ts . = ts-saverestore-support-check + host $g]