This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new 6d5dfdca7 fix: remove log decoration for log parsing (#3556)
6d5dfdca7 is described below
commit 6d5dfdca7ad5b50af0a63b24706d5dc6bfb45d23
Author: Sebastian Tiemann <[email protected]>
AuthorDate: Fri Oct 30 06:17:04 2026 +0100
fix: remove log decoration for log parsing (#3556)
Signed-off-by: Sebastian Tiemann <[email protected]>
---
.../its/jiras/Surefire649EmptyStringSystemPropertiesIT.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire649EmptyStringSystemPropertiesIT.java
b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire649EmptyStringSystemPropertiesIT.java
index 10b7bb3da..a1d08edf5 100644
---
a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire649EmptyStringSystemPropertiesIT.java
+++
b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire649EmptyStringSystemPropertiesIT.java
@@ -40,6 +40,7 @@ public void systemProperties() throws VerificationException {
OutputValidator validator = launcher.executeTest().verifyErrorFree(1);
for (String line : validator.loadLogLines()) {
+ line = removeLogDecoration(line);
if ("emptyProperty=''".equals(line)) {
return;
}
@@ -54,6 +55,7 @@ public void systemPropertyVariables() throws
VerificationException {
OutputValidator validator = launcher.executeTest().verifyErrorFree(1);
for (String line : validator.loadLogLines()) {
+ line = removeLogDecoration(line);
if ("emptyProperty=''".equals(line)) {
return;
}
@@ -68,4 +70,8 @@ private SurefireLauncher unpack1() {
private SurefireLauncher unpack2() {
return unpack("surefire-649-systemPropertyVariables");
}
+
+ private String removeLogDecoration(String line) {
+ return line.replace("[INFO] [stdout] ", "");
+ }
}