From bef61b3ce3b24eee1ac650af5f400a02f174dde3 Mon Sep 17 00:00:00 2001
From: Gary Williams <gary.williams@forgerock.com>
Date: Thu, 01 Mar 2012 16:57:27 +0000
Subject: [PATCH] Allow knownIssue issueid to be a string in functional tests

---
 opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml b/opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml
index 58a1423..6e20fc8 100755
--- a/opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml
+++ b/opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml
@@ -189,14 +189,13 @@
         </script>
 
         <script>
-          try:
-            if issueId.__class__ is PyList:
+            if issueId.__class__ is org.python.core.PyList:
                 for issue in issueId:
-                  if int(issue) not in issuesList:
-                    issuesList.append(int(issue))
+                  if issue not in issuesList:
+                    issuesList.append(issue)
             else:
-              if int(issueId) not in issuesList:
-                issuesList.append(int(issueId))
+              if issueId not in issuesList:
+                issuesList.append(issueId)
           except:
             print 'Issues list undefined. Unable to add issue %s' % issueId
         </script>
@@ -1018,7 +1017,7 @@
             done.setTextContent('%s' % nbDone)
             for issueID in issuesList:
               if issueID not in allbugs:
-                allbugs.append(int(issueID))
+                allbugs.append(issueID)
             bugs.setTextContent('%s' % allbugs)
       </script>
 

--
Gitblit v1.10.0