diff options
author | stekloff@dyn9047022152.beaverton.ibm.com <stekloff@dyn9047022152.beaverton.ibm.com> | 2006-04-19 22:58:03 +0100 |
---|---|---|
committer | stekloff@dyn9047022152.beaverton.ibm.com <stekloff@dyn9047022152.beaverton.ibm.com> | 2006-04-19 22:58:03 +0100 |
commit | 3be23458293005cbbd43b1b223dd4767b02c1238 (patch) | |
tree | ae7e0740dfe230628359aa3f9686e9666c36a714 /tools/xm-test/lib/XmTestLib/Console.py | |
parent | 00ee1f9b78671eeac055e104d09101d72e0ed402 (diff) | |
download | xen-3be23458293005cbbd43b1b223dd4767b02c1238.tar.gz xen-3be23458293005cbbd43b1b223dd4767b02c1238.tar.bz2 xen-3be23458293005cbbd43b1b223dd4767b02c1238.zip |
Fix the 15_create_smallmem_pos.py test, which was failing because the
set console.limit command in the test was never being run. The select in
Console.py was never timing out because there was always someting to read on
the fd, the OOM messages are constant. So the test would hang.
The fix includes:
1) Changing MEM in 15_create_smallmem_pos.py to 32MBs, which is the default
for the tools that should work.
2) Change the XmConsole init to add an argument to set the console limit
when it's created.
3) Set a default large limit for console so we won't hang in the future.
4) Added a new 16_create_smallmem_neg.py test to handle failure situation.
5) Added comment in README.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
Diffstat (limited to 'tools/xm-test/lib/XmTestLib/Console.py')
-rwxr-xr-x | tools/xm-test/lib/XmTestLib/Console.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xm-test/lib/XmTestLib/Console.py b/tools/xm-test/lib/XmTestLib/Console.py index 33455ef047..695106be60 100755 --- a/tools/xm-test/lib/XmTestLib/Console.py +++ b/tools/xm-test/lib/XmTestLib/Console.py @@ -46,7 +46,7 @@ class ConsoleError(Exception): class XmConsole: - def __init__(self, domain, historyLimit=256, historySaveAll=True, historySaveCmds=False): + def __init__(self, domain, historyLimit=256, historySaveAll=True, historySaveCmds=False, cLimit=131072): """ Parameters: historyLimit: specifies how many lines of history are maintained @@ -65,7 +65,7 @@ class XmConsole: self.historySaveAll = historySaveAll self.historySaveCmds = historySaveCmds self.debugMe = False - self.limit = None + self.limit = cLimit consoleCmd = ["/usr/sbin/xm", "xm", "console", domain] |