From 2593b35e67ae3801bac91a18169bd53f85b80565 Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Fri, 31 Oct 2008 11:58:01 +0000
Subject: [PATCH] Issue 851: log archiving, reporting and results collection more fixes

---
 opends/tests/staf-tests/shared/functions/utils.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/opends/tests/staf-tests/shared/functions/utils.xml b/opends/tests/staf-tests/shared/functions/utils.xml
index 6331980..83f445b 100755
--- a/opends/tests/staf-tests/shared/functions/utils.xml
+++ b/opends/tests/staf-tests/shared/functions/utils.xml
@@ -1157,8 +1157,12 @@
         logs = doc.createElement("logs")
         qa.appendChild(logs)
 
-        # Pass only the pretty print of the test suite name
-        suite=CurrentTestPath['suite'].split('.')[2].strip()
+        # Try to pass only the pretty print of the test suite name
+        try:
+          suite=CurrentTestPath['suite'].split('.')[2].strip()
+        except:
+          formattedTestcase  = format_testcase()
+          suite = formattedTestcase.suite(CurrentTestPath['suite'])
 
         # Create the log element
         log = doc.createElement("log")

--
Gitblit v1.10.0