This is an automated email from the ASF dual-hosted git repository.
dzamo pushed a commit to branch 1.20
in repository https://gitbox.apache.org/repos/asf/drill.git
The following commit(s) were added to refs/heads/1.20 by this push:
new 0c8fa8b4b5 [MINOR UPDATE] Disable TestJdbcPluginWithMSSQL when not on
amd64. (#2557)
0c8fa8b4b5 is described below
commit 0c8fa8b4b590f934866872833bb2cc75d648f88d
Author: James Turton <[email protected]>
AuthorDate: Mon May 23 15:10:35 2022 +0200
[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.
---
.../org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
b/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
index f451d51c22..d2eeaa5be0 100644
---
a/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
+++
b/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
@@ -29,6 +29,7 @@ import org.apache.drill.test.ClusterFixture;
import org.apache.drill.test.ClusterTest;
import org.apache.drill.test.rowSet.RowSetUtilities;
import org.junit.AfterClass;
+import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@@ -41,7 +42,8 @@ import java.util.Map;
import static org.junit.Assert.assertEquals;
/**
- * JDBC storage plugin tests against MSSQL.
+ * JDBC storage plugin tests against MSSQL. Note that there is no mssql
container
+ * available on aarch64 so these tests must be disabled on that arch.
*/
@Category(JdbcStorageTest.class)
public class TestJdbcPluginWithMSSQL extends ClusterTest {
@@ -50,6 +52,8 @@ public class TestJdbcPluginWithMSSQL extends ClusterTest {
@BeforeClass
public static void initMSSQL() throws Exception {
+ Assume.assumeTrue(System.getProperty("os.arch").matches("(amd64|x86_64)"));
+
startCluster(ClusterFixture.builder(dirTestWatcher));
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));