From 484bfaad4e5a19fbdc5bad504768d6df28afd982 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Tue, 15 Jun 2010 14:50:12 +0000
Subject: [PATCH] Improve tests for clu, dsconfig and backend. Also preserve code coverage reports when failing
---
opends/tests/staf-tests/shared/tests/runTests.xml | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/opends/tests/staf-tests/shared/tests/runTests.xml b/opends/tests/staf-tests/shared/tests/runTests.xml
index c90bdbe..2661049 100755
--- a/opends/tests/staf-tests/shared/tests/runTests.xml
+++ b/opends/tests/staf-tests/shared/tests/runTests.xml
@@ -209,6 +209,31 @@
'path' : remoteCoveragePath
}
</call>
+
+ <if expr="RC != 0">
+ <sequence>
+ <message>
+ 'Zip up coverage files to %s/coverage.zip' % remote.temp
+ </message>
+ <call function="'zipUpFile'">
+ { 'location' : STAF_REMOTE_HOSTNAME,
+ 'zipfile' : '%s/coverage.zip' % remote.temp,
+ 'folder' : '%s/coverage' % remote.temp,
+ 'relativeto' : remote.temp
+ }
+ </call>
+
+ <message>
+ 'Copy coverage zip archive to %s/coverage.zip' % local.temp
+ </message>
+ <call function="'copyFile'">
+ { 'location' : STAF_REMOTE_HOSTNAME,
+ 'srcfile' : '%s/coverage.zip' % remote.temp,
+ 'destfile' : '%s/coverage.zip' % local.temp,
+ 'remotehost' : STAXServiceMachine }
+ </call>
+ </sequence>
+ </if>
</sequence>
</if>
--
Gitblit v1.10.0