Skip test suite entirely for non-applicable distribution types (#50824)

This commit is contained in:
Mark Vieira 2020-01-09 15:43:44 -08:00
parent a9c4db4134
commit 2ab3e49dec
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ import junit.framework.TestCase;
import org.elasticsearch.packaging.util.Distribution;
import org.elasticsearch.packaging.util.FileUtils;
import org.elasticsearch.packaging.util.Shell;
import org.junit.Before;
import org.junit.BeforeClass;
import java.util.regex.Pattern;
@ -32,8 +32,8 @@ import static org.junit.Assume.assumeTrue;
public class DebMetadataTests extends PackagingTestCase {
@Before
public void filterDistros() {
@BeforeClass
public static void filterDistros() {
assumeTrue("only deb", distribution.packaging == Distribution.Packaging.DEB);
}