[MNG-8084] add system properties to test (#1500)

fixes ./${user.home} directory creation during tests execution
This commit is contained in:
Hervé Boutemy 2024-05-06 07:31:23 +02:00 committed by GitHub
parent 3d3137920a
commit d8199bf3b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ public class ApiRunner {
super(session, repositorySystem, repositories, resolverRepositories, lookup);
systemProperties = System.getenv().entrySet().stream()
.collect(Collectors.toMap(e -> "env." + e.getKey(), e -> e.getValue()));
System.getProperties().forEach((k, v) -> systemProperties.put(k.toString(), v.toString()));
}
@Override