Skip to content

Commit 029d9c0

Browse files
Jan Washashhar
authored andcommitted
Pass Maven test flags from CI to Hive tests
1 parent aa95c13 commit 029d9c0

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

plugin/trino-hive-hadoop2/bin/run_hive_abfs_access_key_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ stop_unnecessary_hadoop_services
2626
# run product tests
2727
pushd $PROJECT_ROOT
2828
set +e
29-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-abfs-access-key \
29+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-abfs-access-key \
3030
-DHADOOP_USER_NAME=hive \
3131
-Dhive.hadoop2.metastoreHost=localhost \
3232
-Dhive.hadoop2.metastorePort=9083 \

plugin/trino-hive-hadoop2/bin/run_hive_abfs_oauth_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ stop_unnecessary_hadoop_services
2727

2828
pushd $PROJECT_ROOT
2929
set +e
30-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-abfs-oauth \
30+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-abfs-oauth \
3131
-DHADOOP_USER_NAME=hive \
3232
-Dhive.hadoop2.metastoreHost=localhost \
3333
-Dhive.hadoop2.metastorePort=9083 \

plugin/trino-hive-hadoop2/bin/run_hive_adl_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ stop_unnecessary_hadoop_services
2626
# run product tests
2727
pushd $PROJECT_ROOT
2828
set +e
29-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-adl \
29+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-adl \
3030
-DHADOOP_USER_NAME=hive \
3131
-Dhive.hadoop2.metastoreHost=localhost \
3232
-Dhive.hadoop2.metastorePort=9083 \

plugin/trino-hive-hadoop2/bin/run_hive_alluxio_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function main () {
5656
# run product tests
5757
pushd ${PROJECT_ROOT}
5858
set +e
59-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-alluxio \
59+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-alluxio \
6060
-Dhive.hadoop2.alluxio.host=localhost \
6161
-Dhive.hadoop2.alluxio.port=19998 \
6262
-Dhive.hadoop2.hiveVersionMajor="${TESTS_HIVE_VERSION_MAJOR}" \

plugin/trino-hive-hadoop2/bin/run_hive_s3_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ retry check_hadoop
5353
# run product tests
5454
pushd "${PROJECT_ROOT}"
5555
set +e
56-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-s3 \
56+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-s3 \
5757
-DHADOOP_USER_NAME=hive \
5858
-Dhive.hadoop2.metastoreHost=localhost \
5959
-Dhive.hadoop2.metastorePort=9083 \

plugin/trino-hive-hadoop2/bin/run_hive_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ HADOOP_MASTER_IP=$(hadoop_master_ip)
2121
# run product tests
2222
pushd "${PROJECT_ROOT}"
2323
set +e
24-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2 \
24+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2 \
2525
-DHADOOP_USER_NAME=hive \
2626
-Dhive.hadoop2.metastoreHost=localhost \
2727
-Dhive.hadoop2.metastorePort=9083 \

plugin/trino-hive-hadoop2/bin/run_hive_wasb_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ stop_unnecessary_hadoop_services
2626
# run product tests
2727
pushd $PROJECT_ROOT
2828
set +e
29-
./mvnw -B -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-wasb \
29+
./mvnw ${MAVEN_TEST:--B} -pl :trino-hive-hadoop2 test -P test-hive-hadoop2-wasb \
3030
-DHADOOP_USER_NAME=hive \
3131
-Dhive.hadoop2.metastoreHost=localhost \
3232
-Dhive.hadoop2.metastorePort=9083 \

testing/trino-test-jdbc-compatibility-old-driver/bin/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -xeuo pipefail
44
trap "exit" INT # allows to terminate script on ctrl+c instead of terminating single mvnw execution
55

66
maven="${BASH_SOURCE%/*}/../../../mvnw"
7-
maven_run_tests="${maven} clean test -Dair.check.skip-all=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -B -pl :trino-test-jdbc-compatibility-old-driver"
7+
maven_run_tests="${maven} clean test ${MAVEN_TEST:--B} -pl :trino-test-jdbc-compatibility-old-driver"
88

99
"${maven}" -version
1010

0 commit comments

Comments
 (0)