Skip to content

Commit 0c8fa8b

Browse files
committed
[MINOR UPDATE] Disable TestJdbcPluginWithMSSQL when not on amd64. (#2557)
* [MINOR UPDATE] Disable TestJdbcPluginWithMSSQL when not on amd64. * Try using DisabledIf... instead of EnabledIf.. at class level. * Try adding EnabledIf... annotation to static setup and teardown methods. * Try adding a manual bypass to the @BeforeClass method. * Try using method-level EnabledIf... annotations. * Try to disable using os.arch = "aarch_64". * Try using org.junit.Assume instead of annotations.
1 parent 230ab08 commit 0c8fa8b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.apache.drill.test.ClusterTest;
3030
import org.apache.drill.test.rowSet.RowSetUtilities;
3131
import org.junit.AfterClass;
32+
import org.junit.Assume;
3233
import org.junit.BeforeClass;
3334
import org.junit.Test;
3435
import org.junit.experimental.categories.Category;
@@ -41,7 +42,8 @@
4142
import static org.junit.Assert.assertEquals;
4243

4344
/**
44-
* JDBC storage plugin tests against MSSQL.
45+
* JDBC storage plugin tests against MSSQL. Note that there is no mssql container
46+
* available on aarch64 so these tests must be disabled on that arch.
4547
*/
4648
@Category(JdbcStorageTest.class)
4749
public class TestJdbcPluginWithMSSQL extends ClusterTest {
@@ -50,6 +52,8 @@ public class TestJdbcPluginWithMSSQL extends ClusterTest {
5052

5153
@BeforeClass
5254
public static void initMSSQL() throws Exception {
55+
Assume.assumeTrue(System.getProperty("os.arch").matches("(amd64|x86_64)"));
56+
5357
startCluster(ClusterFixture.builder(dirTestWatcher));
5458
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
5559

0 commit comments

Comments
 (0)