mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Change the eyecatcher to be case-insensitive, so that "Internal error" is
detected. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
1 parent
9aa2765862
commit
282cd380d9
2 files changed
+4
-4
No files matched your search
@@ -32,10 +32,10 @@ except ConsoleError, e:
|
||||
|
||||
status, output = traceCommand("xm block-attach %s phy:NOT-EXIST xvda1 w" % domain.getName())
|
||||
eyecatcher = "Error"
|
||||
where = output.find(eyecatcher)
|
||||
where = re.compile(eyecatcher, re.IGNORECASE).search(output)
|
||||
if status == 0:
|
||||
FAIL("xm block-attach returned bad status, expected non 0, status is: %i" % status )
|
||||
elif where == -1:
|
||||
elif where is None:
|
||||
FAIL("xm block-attach returned bad output, expected Error, output is: %s" % output )
|
||||
|
||||
try:
|
||||
|
||||
@@ -31,10 +31,10 @@ except ConsoleError, e:
|
||||
|
||||
status, output = traceCommand("xm block-attach %s file:/dev/NOT-EXIST xvda1 w" % domain.getName())
|
||||
eyecatcher = "Error"
|
||||
where = output.find(eyecatcher)
|
||||
where = re.compile(eyecatcher, re.IGNORECASE).search(output)
|
||||
if status == 0:
|
||||
FAIL("xm block-attach returned bad status, expected non 0, status is: %i" % status )
|
||||
elif where == -1:
|
||||
elif where is None:
|
||||
FAIL("xm block-attach returned bad output, expected Error, output is: %s" % output )
|
||||
|
||||
try:
|
||||
|
||||