[java-idp-integration-tests] 02/02: Append per-test idp.home directory name with class name

Tom Zeller tzeller at dragonacea.biz
Wed Jun 23 02:16:45 UTC 2021


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch main
in repository java-idp-integration-tests.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=d4031b7c715997732b02acc1a7d54f77ff4060c3

commit d4031b7c715997732b02acc1a7d54f77ff4060c3
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Jun 22 21:16:10 2021 -0500

    Append per-test idp.home directory name with class name
---
 src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java | 4 +++-
 1 file changed, 3 insertions(+), 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 f46f55f..7405ac7 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -413,7 +413,9 @@ public abstract class BaseIntegrationTest
 
         // Path to per-test idp.home
         final String timestamp = DateTimeFormatter.ofPattern(idpHomePattern).format(LocalDateTime.now());
-        pathToIdPHome = pathToDistIdPHome.getParent().resolve(timestamp);
+        final String perTestDirectoryName = String.join("-", timestamp, getClass().getSimpleName());
+        log.debug("Per-test idp.home directory name '{}'", perTestDirectoryName);
+        pathToIdPHome = pathToDistIdPHome.getParent().resolve(perTestDirectoryName);
         log.debug("Path to idp.home '{}'", pathToIdPHome.toAbsolutePath());
         Assert.assertFalse(pathToIdPHome.toAbsolutePath().toFile().exists(), "Path to idp.home already exists");
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list