ia64/xen-unstable

view tools/xm-test/tests/create/15_create_smallmem_pos.py @ 7894:7209244ea3d1

Make test 15_create_smallmem pass mem=16M on the kernel command line.
author dan@guaranine.beaverton.ibm.com
date Fri Nov 18 13:02:33 2005 +0100 (2005-11-18)
parents cbf6f95e9c62
children eb1169f92d81
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Dan Smith <danms@us.ibm.com>
6 from XmTestLib import *
8 MEM = 16
10 domain = XmTestDomain(extraOpts={"memory":"%i" % MEM,
11 "extra" :"mem=%iM" % MEM})
13 try:
14 domain.start()
15 except DomainError, e:
16 FAIL("Unable to start a domain with %i MB" % MEM)
18 try:
19 console = XmConsole(domain.getName())
20 console.sendInput("input")
21 console.runCmd("ls")
22 except ConsoleError, e:
23 if e.reason == RUNAWAY:
24 FAIL("Bug #380: Starting a console with %i MB crashed the console daemon" % MEM)
25 else:
26 FAIL("Starting a console with %i MB failed: domain dies immediately!" % MEM)
28 domain.destroy()