From 7b1c57107883d290eaf31acec680c494ee6f14c5 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 1 Jul 2019 13:15:12 +0200 Subject: [PATCH] Run tests in multiple reusable forks to improve test performance --- apache-commons-io.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apache-commons-io.spec b/apache-commons-io.spec index b75f26c..b27167a 100644 --- a/apache-commons-io.spec +++ b/apache-commons-io.spec @@ -26,12 +26,13 @@ to assist with developing IO functionality. %setup -q -n commons-io-%{version}-src sed -i 's/\r//' *.txt -%build +# Run tests in multiple reusable forks to improve test performance +sed -i -e /reuseForks/d -e /forkCount/d pom.xml + %mvn_file : commons-io %{name} %mvn_alias : org.apache.commons: -# NOTE: tests *may* fail because commons-io is on surefire's classpath and causes -# tests to be run against the system version and not the one we just built +%build %mvn_build %install