[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 16/17] 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 <Ian.Jackson@xxxxxxxxxxxxx>
---
 make-flight | 1 +
 sg-run-job  | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/make-flight b/make-flight
index ebc9156..4e2d464 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 965e55d..71b5b82 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} {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.