From d992c40d4c3bd12382368fefb283f07c3dcab3fa Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 4 Jan 2016 12:21:58 +0100 Subject: [PATCH] Ignore test by renaming test method, JUnit 3.x tests can't use annotations --- apache-commons-net.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache-commons-net.spec b/apache-commons-net.spec index 51e8f9e..3d33eda 100644 --- a/apache-commons-net.spec +++ b/apache-commons-net.spec @@ -42,7 +42,7 @@ rm src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java rm src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java # Workaround for suprious test failure (NET-586) # Reported upstream: https://issues.apache.org/jira/browse/NET-586 -sed -i '/testFeb29IfLeapYear/s/./@org.junit.Ignore/' $(find -name FTPTimestampParserImplTest.java) +sed -i 's/testFeb29IfLeapYear/ignored_&/' $(find -name FTPTimestampParserImplTest.java) %mvn_file : %{short_name} %{name} %mvn_alias : org.apache.commons:%{short_name}