Fix block_attach_shared tests. When the sharing check succeeds, the domain

is created but left paused, so it is necessary to destroy the domain afterwards,
whether the test succeeded or failed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-12-15 13:49:07 +00:00
1 parent 822fceff34
commit d5461c7b29
2 files changed
+9 -4

No files matched your search

@@ -34,3 +34,5 @@ try:
FAIL("Bug #331: Started a DomU with write access to a rw mounted block device")
except DomainError, e:
s, o = traceCommand("umount mnt")
domain.destroy()
@@ -20,8 +20,11 @@ except DomainError, e:
FAIL("Unable to start domain")
try:
dom2.start()
dom1.destroy()
FAIL("Bug #331: Started a DomU with write access to an in-use block device")
except DomainError, e:
try:
dom2.start()
FAIL("Bug #331: Started a DomU with write access to an in-use block device")
except DomainError, e:
pass
finally:
dom1.destroy()
dom2.destroy()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.