tycho/0007-Revert-change-for-surefire-update-that-is-not-in-Fed.patch
DistroBaker bbd0e0c568 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/tycho.git#15edd47bbba0d2b7739884e73cfbdc5636e177f9
2021-01-08 14:40:12 +01:00

70 lines
4.0 KiB
Diff

From d90cb4ea647623da0daab058010c454d8dc832ed Mon Sep 17 00:00:00 2001
From: Mat Booth <mat.booth@redhat.com>
Date: Wed, 25 Nov 2020 10:35:26 +0000
Subject: [PATCH 7/7] Revert change for surefire update that is not in Fedora
---
pom.xml | 2 +-
.../META-INF/MANIFEST.MF | 8 ++++----
.../tycho/surefire/osgibooter/OsgiSurefireBooter.java | 5 ++---
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/pom.xml b/pom.xml
index 89500fd2..05a0fd88 100644
--- a/pom.xml
+++ b/pom.xml
@@ -85,7 +85,7 @@
<pluginToolsVersion>3.6.0</pluginToolsVersion>
<maven-version>3.6.3</maven-version>
<!-- NOTE: when updating surefire version, double-check Import-Package statements generated by bnd-maven-plugin and possibly adapt instructions in various bnd.bnd files -->
- <surefire-version>2.22.2</surefire-version>
+ <surefire-version>2.22.0</surefire-version>
<equinoxVersion>3.16.0</equinoxVersion>
<equinoxCompatVersion>1.2.100</equinoxCompatVersion>
diff --git a/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/META-INF/MANIFEST.MF b/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/META-INF/MANIFEST.MF
index 3888be52..d9ae3dce 100644
--- a/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/META-INF/MANIFEST.MF
+++ b/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/META-INF/MANIFEST.MF
@@ -5,10 +5,10 @@ Require-Bundle: org.eclipse.osgi;bundle-version="3.2.2",
Bundle-ActivationPolicy: lazy
Bundle-Version: 2.1.0
Bundle-ClassPath: .,
- jars/surefire-booter-2.22.2.jar,
- jars/surefire-api-2.22.2.jar,
- jars/surefire-logger-api-2.22.2.jar,
- jars/maven-surefire-common-2.22.2.jar
+ jars/surefire-booter-2.22.0.jar,
+ jars/surefire-api-2.22.0.jar,
+ jars/surefire-logger-api-2.22.0.jar,
+ jars/maven-surefire-common-2.22.0.jar
Bundle-Name: Tycho Surefire OSGi Booter Eclipse Application
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.tycho.surefire.osgibooter;singleton:=true
diff --git a/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java b/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java
index 70be36f1..5734a440 100644
--- a/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java
+++ b/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java
@@ -27,7 +27,6 @@ import java.util.Set;
import org.apache.maven.plugin.surefire.StartupReportConfiguration;
import org.apache.maven.plugin.surefire.log.api.PrintStreamLogger;
-import org.apache.maven.plugin.surefire.report.ConsoleReporter;
import org.apache.maven.plugin.surefire.report.DefaultReporterFactory;
import org.apache.maven.surefire.booter.BooterConstants;
import org.apache.maven.surefire.booter.ClassLoaderConfiguration;
@@ -105,8 +104,8 @@ public class OsgiSurefireBooter {
extractProviderProperties(testProps), null, false, Collections.<CommandLineOption> emptyList(),
skipAfterFailureCount, Shutdown.DEFAULT, 30);
StartupReportConfiguration startupReportConfig = new StartupReportConfiguration(useFile, printSummary,
- ConsoleReporter.PLAIN, redirectTestOutputToFile, disableXmlReport, reportsDir, trimStackTrace, null,
- new File(reportsDir, "TESTHASH"), false, rerunFailingTestsCount, XSD, null, false);
+ StartupReportConfiguration.PLAIN_REPORT_FORMAT, redirectTestOutputToFile, disableXmlReport, reportsDir,
+ trimStackTrace, null, new File(reportsDir, "TESTHASH"), false, rerunFailingTestsCount, XSD, null);
ReporterFactory reporterFactory = new DefaultReporterFactory(startupReportConfig,
new PrintStreamLogger(startupReportConfig.getOriginalSystemOut()));
// API indicates we should use testClassLoader below but surefire also tries
--
2.28.0