From 662b9ea30d3a4766b3545b92b4e5f0560031f3e4 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Fri, 17 Oct 2025 15:25:40 +0200 Subject: [PATCH 1/2] Avoid GPG agent interactions during test runs --- .../open/xml/OpenTestReportGeneratingListenerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java b/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java index 6a869b5ec1ed..8b285e1369c9 100644 --- a/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java +++ b/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java @@ -191,7 +191,7 @@ void includesGitInfoWhenEnabled(String originUrl, @TempDir Path tempDirectory) t execGit(tempDirectory, "config", "user.name", "Alice"); execGit(tempDirectory, "config", "user.email", "alice@example.org"); - execGit(tempDirectory, "commit", "-m", "Initial commit"); + execGit(tempDirectory, "commit", "--no-gpg-sign", "-m", "Initial commit"); var engine = new DemoHierarchicalTestEngine("dummy"); From 389806becb5218c8d9429202f2c66a40df1b832f Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Fri, 17 Oct 2025 15:46:14 +0200 Subject: [PATCH 2/2] Avoid reading user's global Git config --- .../open/xml/OpenTestReportGeneratingListenerTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java b/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java index 8b285e1369c9..686844b0857e 100644 --- a/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java +++ b/platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java @@ -280,6 +280,7 @@ private static ProcessResult tryExecGit(Path workingDir, String... arguments) th System.out.println("$ git " + String.join(" ", arguments)); return new ProcessStarter() // .executable(Path.of("git")) // + .putEnvironment("GIT_CONFIG_GLOBAL", "/dev/null") // https://git-scm.com/docs/git#Documentation/git.txt-GITCONFIGGLOBAL .workingDir(workingDir) // .addArguments(arguments) // .startAndWait();