From: Ian Jackson Date: Thu, 7 Jun 2018 16:02:40 +0000 (+0100) Subject: dm restrict audit: Run ts-depriv-audit-qemu X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e399b2e0d124beab9d078d9f26b37ba340317f3f;p=people%2Fiwj%2Fosstest.git dm restrict audit: Run ts-depriv-audit-qemu Add the new steps to jobs where the `recipe_dmrestrict' runvars is set, and set that flag on the relevant job. We introduce the new recipe-flag proc in sg-run-job to make this more convenient. Signed-off-by: Ian Jackson --- diff --git a/make-flight b/make-flight index ebc9156d..4e2d464f 100755 --- a/make-flight +++ b/make-flight @@ -452,6 +452,7 @@ do_hvm_debian_tests() { if $dmrestrict; then do_hvm_debian_test_one dmrestrict xl seabios false '' -dmrestrict ' debianhvm_dmrestrict=true + recipe_dmrestrict=true recipe_nomigrate=true ' fi diff --git a/sg-run-job b/sg-run-job index 965e55d1..71b5b828 100755 --- a/sg-run-job +++ b/sg-run-job @@ -617,6 +617,14 @@ proc test-guest {g} { # guest is expected to be running, and ends up stopped test-guest-migr $g test-guest-nomigr $g + test-guest-dmrestrict $g +} + +proc test-guest-dmrestrict {g} { + # guest is expected to be stopped, and is left stopped + if {![recipe-flag dmrestrict]} return + run-ts . = ts-depriv-audit-qemu create + host $g + run-ts . =.audited ts-guest-stop + host $g } proc test-guest-nomigr {g} {