source: trunk/packages/xen-3.1/xen-3.1/tools/xm-test/tests/sysrq/01_sysrq_basic_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: 490 bytes
Line 
1#!/usr/bin/python
2
3# Copyright (C) International Business Machines Corp., 2005
4# Author: Dan Smith <danms@us.ibm.com>
5
6# Check to make sure an invalid sysrq is handled appropriately
7
8import re
9
10from XmTestLib import *
11
12if ENABLE_HVM_SUPPORT:
13    SKIP("Sysrq not supported for HVM domains")
14
15status, output = traceCommand("xm sysrq does_not_exist s");
16
17if status == 0:
18    if verbose:
19        print "Bad SysRq output: " + output;
20    FAIL("Bad SysRq didn't report error: %i == 0" % status);
Note: See TracBrowser for help on using the repository browser.