summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-08-08 14:15:06 (GMT)
committerRichard Maw <richard.maw@codethink.co.uk>2014-08-19 15:49:03 (GMT)
commit2e69fdc0db5c100222b3f8085d871c0a89444c8c (patch)
tree9d07cfc85b26ecbe9ab2bf42e94b715ac06c4211 /scripts
parent1cda941e95c7a8dfd7183d7307c84d0d1d2a2a91 (diff)
downloaddefinitions-2e69fdc0db5c100222b3f8085d871c0a89444c8c.tar.gz
Remove all VM storage together in one command
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release-test5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/release-test b/scripts/release-test
index fd71fdc..b2bca58 100755
--- a/scripts/release-test
+++ b/scripts/release-test
@@ -167,14 +167,11 @@ class DeployedSystemInstance(object):
# TODO: Stop assuming that destroy failed because it wasn't running
pass
try:
- self.host_machine.virsh('undefine', self.vm_id)
+ self.host_machine.virsh('undefine', self.vm_id, '--remove-all-storage')
except cliapp.AppException as e:
# TODO: Stop assuming that undefine failed because it was
# already removed
pass
- # TODO: Remove all attached disks, rather than just assuming it
- # only has one
- self.host_machine.runcmd(['rm', self.rootfs_path])
class Deployment(object):