From a6bf51f81dc69ef385274bc97c590fb83c0768af Mon Sep 17 00:00:00 2001
From: Gary Williams <gary.williams@forgerock.com>
Date: Sat, 22 Sep 2012 13:26:52 +0000
Subject: [PATCH] If functional tests logs hosted on web server just use directly the url

---
 opends/tests/staf-tests/shared/tests/runTests.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opends/tests/staf-tests/shared/tests/runTests.xml b/opends/tests/staf-tests/shared/tests/runTests.xml
index 9aa56bd..dd1624a 100755
--- a/opends/tests/staf-tests/shared/tests/runTests.xml
+++ b/opends/tests/staf-tests/shared/tests/runTests.xml
@@ -56,9 +56,14 @@
         else:
           my_info['snmp jarfile']=SNMP_OPENDMK_JARFILE
         
+        #If test logs hosted on web server just use directly the url
+        if LOGS_URI.startswith('http://'):
+          base_uri = '%s/%s' % (LOGS_URI,os.path.split(local.directory)[1])
+        else:
+          base_uri = local.directory
 
         xml_create_report(PRODUCTNAME,TESTS_TYPE,my_path, \
-          DSInfo.ServerDict,my_info,local.directory,my_report)
+          DSInfo.ServerDict,my_info,base_uri,my_report)
 
         # Copy the content of results2.xml file to results_tmp.xml
         # And add an xml-stylesheet

--
Gitblit v1.10.0