debuggers.hg

view tools/xm-test/tests/sysrq/01_sysrq_basic_neg.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: Dan Smith <danms@us.ibm.com>
6 # Check to make sure an invalid sysrq is handled appropriately
8 import re
10 from XmTestLib import *
12 if ENABLE_HVM_SUPPORT:
13 SKIP("Sysrq not supported for HVM domains")
15 status, output = traceCommand("xm sysrq does_not_exist s");
17 if status == 0:
18 if verbose:
19 print "Bad SysRq output: " + output;
20 FAIL("Bad SysRq didn't report error: %i == 0" % status);