blob: 79c9571f8c795174ec6df79801980ae1f7581e33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/python
# Copyright (C) International Business Machines Corp., 2005
# Author: Dan Smith <danms@us.ibm.com>
from XmTestLib import *
if ENABLE_HVM_SUPPORT:
SKIP("Block-attach not supported for HVM domains")
config = {"disk":"phy:/dev/ram0,xvda1,w"}
dom1 = XmTestDomain(extraConfig=config)
dom2 = XmTestDomain(dom1.getName() + "-2",
extraConfig=config)
try:
dom1.start()
except DomainError, e:
FAIL("Unable to start domain")
try:
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()
|