source: trunk/packages/xen-3.1/xen-3.1/tools/xm-test/tests/memmax/01_memmax_badparm_neg.py @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/script
File size: 775 bytes
Line 
1#!/usr/bin/python
2
3# Copyright (C) International Business Machines Corp., 2005
4# Author: Woody Marvel <marvel@us.ibm.com>
5## Description: Test xm memmax bad parameter
6
7import re
8
9from XmTestLib import *
10
11if ENABLE_HVM_SUPPORT:
12    SKIP("Mem-max not supported for HVM domains")
13
14status, output = traceCommand("xm mem-max")
15eyecatcher = "Error:"
16where = output.find(eyecatcher)
17if status == 0:
18    FAIL("xm memmax returned invalid %i == 0" % status)
19elif where < 0:
20    FAIL("xm memmax failed to report error for missing arg")
21
22
23status, output = traceCommand("xm mem-max 6666")
24eyecatcher = "Error:"
25where = output.find(eyecatcher)
26if status == 0:
27    FAIL("xm memmax returned invalid %i == 0" % status)
28elif where < 0:
29    FAIL("xm memmax failed to report error for bad arg")
Note: See TracBrowser for help on using the repository browser.