From 05fc9730274b38fa72103b026452fcd5ee22baac Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Mon, 10 Nov 2008 16:02:48 +0000
Subject: [PATCH] Issue 851: log archiving, reporting and results collection fix test names

---
 opends/tests/staf-tests/shared/python/common.py |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/opends/tests/staf-tests/shared/python/common.py b/opends/tests/staf-tests/shared/python/common.py
index d4f65c5..afa72c0 100644
--- a/opends/tests/staf-tests/shared/python/common.py
+++ b/opends/tests/staf-tests/shared/python/common.py
@@ -40,7 +40,8 @@
             "exception_thrown",
             "directory_server",
             "test_env",
-            "staf_service" ]
+            "staf_service",
+            "get_test_name" ]
 
 class format_testcase:
   'Format the Test name objects'
@@ -537,3 +538,14 @@
     def get_reljavadir(self):
       return self.directory
 
+def get_test_name(name):
+  i=2
+  __name=''
+  __tn=name.split(':')
+  while i < len(__tn):
+    __name += '%s:' % __tn[i]
+    i=i+1
+  return __name[0:-1].strip()
+
+
+

--
Gitblit v1.10.0