blob: 07cf56c373983b4ca9ee408597673b8298bf787d (
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_VMX_SUPPORT:
SKIP("Block-attach not supported for VMX domains")
config = {"disk":"phy:/dev/ram0,hda1,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()
|