[java-idp-integration-tests] 01/02: Add 'keepTests' system property to not delete per-test idp.home
Tom Zeller
tzeller at dragonacea.biz
Fri Aug 12 14:01:25 EDT 2016
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch master
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=71018fff6d0467c0324df9491a1fdf6d91cfdc38
commit 71018fff6d0467c0324df9491a1fdf6d91cfdc38
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Fri Aug 12 12:25:01 2016 -0500
Add 'keepTests' system property to not delete per-test idp.home
Per-test idp.home directories are deleted if tests pass by default, this
option preserves those directories.
---
src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index 6a4231d..7ff2945 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -1249,7 +1249,7 @@ public abstract class BaseIntegrationTest
if (testClassFailed) {
log.debug("There was a test class failure, not deleting per-test idp.home directory '{}'",
pathToIdPHome.toAbsolutePath());
- } else {
+ } else if (!Boolean.getBoolean("keepTests")) {
log.debug("Deleting per-test idp.home directory '{}'", pathToIdPHome.toAbsolutePath());
FileSystemUtils.deleteRecursively(pathToIdPHome.toAbsolutePath().toFile());
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list