From c6573ef35435c3e69f3abcbb8e46195d85926860 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Wed, 02 Jul 2008 14:33:45 +0000
Subject: [PATCH] QA: System Test: fix verifyTree() : check the RC, pass if equals to 0 or 4 (Size Limit Exceeded)
---
opends/tests/system-tests/phases/shared/functions/utils.xml | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/opends/tests/system-tests/phases/shared/functions/utils.xml b/opends/tests/system-tests/phases/shared/functions/utils.xml
index 2d85546..4dcc54c 100755
--- a/opends/tests/system-tests/phases/shared/functions/utils.xml
+++ b/opends/tests/system-tests/phases/shared/functions/utils.xml
@@ -860,12 +860,23 @@
</else>
</if>
+ <script>
+ isList = FALSE
+ try:
+ if len(expectedRC) >= 0:
+ isList = TRUE
+ except:
+ isList = FALSE
+
+ if isList == FALSE:
+ expectedRC = [expectedRC]
+ </script>
<if expr="expectedRC != 'noCheck'">
<call function="'checkRC'">
{ 'returncode' : cmdRC,
'result' : cmdOutput,
- 'expected' : [expectedRC],
+ 'expected' : expectedRC,
'fileFd' : fileFd
}
</call>
--
Gitblit v1.10.0