Skip test suite entirely for non-applicable distribution types (#50824)
This commit is contained in:
parent
a9c4db4134
commit
2ab3e49dec
|
@ -23,7 +23,7 @@ import junit.framework.TestCase;
|
||||||
import org.elasticsearch.packaging.util.Distribution;
|
import org.elasticsearch.packaging.util.Distribution;
|
||||||
import org.elasticsearch.packaging.util.FileUtils;
|
import org.elasticsearch.packaging.util.FileUtils;
|
||||||
import org.elasticsearch.packaging.util.Shell;
|
import org.elasticsearch.packaging.util.Shell;
|
||||||
import org.junit.Before;
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ import static org.junit.Assume.assumeTrue;
|
||||||
|
|
||||||
public class DebMetadataTests extends PackagingTestCase {
|
public class DebMetadataTests extends PackagingTestCase {
|
||||||
|
|
||||||
@Before
|
@BeforeClass
|
||||||
public void filterDistros() {
|
public static void filterDistros() {
|
||||||
assumeTrue("only deb", distribution.packaging == Distribution.Packaging.DEB);
|
assumeTrue("only deb", distribution.packaging == Distribution.Packaging.DEB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue