From c4e4f836890e00294f0b342a59c7c056d7c58c8d Mon Sep 17 00:00:00 2001
From: madiot <madiot@localhost>
Date: Mon, 17 Aug 2009 16:13:12 +0000
Subject: [PATCH] fixing coverage commit 

---
 opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml |   14 +++++++-------
 1 files changed, 7 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 86496e9..c96c37d 100755
--- a/opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml
+++ b/opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml
@@ -1175,18 +1175,18 @@
       <message>'##### %s group postamble #####' % ThisGroupName</message>
 
       <script>
-        coveragePath=os.path.join(LOGS_ROOT,'coverage')
         emmaJar='%s/%s/lib/emma.jar' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)
-        coverageEm=os.path.join(coveragePath,'coverage.em')
-        ecPath=os.path.join(coveragePath,CurrentTestPath['group'])
-        coverageEcs=[ os.path.join(ecPath,ec) for ec in os.listdir(ecPath) if ec.startswith('coverage') and ec.endswith('.ec')]
-        coverageFiles=','.join(coverageEcs)
-        coverageXml=os.path.join(ecPath,'coverage.xml')
-        coverageHtml=os.path.join(ecPath,'coverage.html')
       </script>
       <if expr="os.path.exists(emmaJar)">
         <sequence>
           <script>
+            coveragePath=os.path.join(LOGS_ROOT,'coverage')
+            coverageEm=os.path.join(coveragePath,'coverage.em')
+            ecPath=os.path.join(coveragePath,CurrentTestPath['group'])
+            coverageEcs=[ os.path.join(ecPath,ec) for ec in os.listdir(ecPath) if ec.startswith('coverage') and ec.endswith('.ec')]
+            coverageFiles=','.join(coverageEcs)
+            coverageXml=os.path.join(ecPath,'coverage.xml')
+            coverageHtml=os.path.join(ecPath,'coverage.html')
             srcPathPrefix = os.path.join(TMPDIR,"..","..","..","..","..","..","src")
             srcPaths = [ os.path.join(srcPathPrefix,"server"),
                          os.path.join(srcPathPrefix,"ads"),

--
Gitblit v1.10.0