mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
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()
|
||||