debuggers.hg

view tools/xm-test/tests/block-list/04_block-list_nodb_pos.py @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Li Ge <lge@us.ibm.com)
6 # Positive Test: attempt list of domain wtih no block devices
9 from XmTestLib import *
11 if ENABLE_HVM_SUPPORT:
12 SKIP("Block-list not supported for HVM domains")
14 domain = XmTestDomain()
16 try:
17 domain.start(noConsole=True)
18 except DomainError, e:
19 if verbose:
20 print e.extra
21 FAIL("Unable to create domain")
23 status, output = traceCommand("xm block-list %s" % domain.getId())
24 if status != 0:
25 FAIL("xm block-list returned bad status, expected 0, status is %i" % status)
27 if output != "":
28 FAIL("xm block-list should not list anything for domain with no block devices")