[gnome-boxes] tests: Clean-up system broker VMs



commit 3bd95c97eea5ad0b7d731904673e8484ed37d390
Author: Vladimir Benes <benesv email cz>
Date:   Wed Feb 18 20:45:43 2015 +0100

    tests: Clean-up system broker VMs
    
    Delete both machines that are created by 'Import 2 box from system broker'
    scenario from system broker.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744682

 tests/environment.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/environment.py b/tests/environment.py
index e2ef01e..1f813e8 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -215,6 +215,10 @@ def after_tag(context, tag):
         os.system('virsh -q -c qemu:///system destroy Core-5.3 > /dev/null 2>&1')
         os.system('virsh -q -c qemu:///system undefine Core-5.3 > /dev/null 2>&1')
 
+        if tag == "import_2_boxs_from_system_broker":
+            os.system('virsh -q -c qemu:///system destroy Core-5.3-2 > /dev/null 2>&1')
+            os.system('virsh -q -c qemu:///system undefine Core-5.3-2 > /dev/null 2>&1')
+
 
 def after_scenario(context, scenario):
     """Teardown for each scenario


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