From 207eaef4d6cad1b74033fbbb66315e78c26aa431 Mon Sep 17 00:00:00 2001 From: Artem Ervits Date: Thu, 30 May 2019 12:55:24 -0400 Subject: [PATCH] HBASE-22464 Improvements to hbase-vote script HBASE-22464 Improvements to hbase-vote script --- dev-support/hbase-vote.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git dev-support/hbase-vote.sh dev-support/hbase-vote.sh index 0d6c316d27..b3913ac8ff 100755 --- dev-support/hbase-vote.sh +++ dev-support/hbase-vote.sh @@ -39,6 +39,7 @@ Usage: ${SCRIPT} -s | --source [-k | --key ] [-f | --keys-file- -f | --keys-file-url '' the URL of the key file, default is http://www.apache.org/dist/hbase/KEYS -o | --output-dir '' directory which has the stdout and stderr of each verification target + -P | additional arguments to pass to test UT/IT, i.e. <-P runSmallTests> (runMediumTests, runLargeTests, runAllTests) __EOF } @@ -54,6 +55,8 @@ while ((${#})); do KEY_FILE_URL="${2}"; shift 2 ;; -o | --output-dir ) OUTPUT_DIR="${2}"; shift 2 ;; + -P ) + MVN_ARGS="-P ${2}"; shift 2 ;; * ) usage >&2; exit 1 ;; esac @@ -107,7 +110,7 @@ function download_and_import_keys() { function download_release_candidate () { # get all files from release candidate repo - wget -r -np -nH --cut-dirs 4 "${SOURCE_URL}" + wget -r -np -N -nH --cut-dirs 4 "${SOURCE_URL}" } function verify_signatures() { @@ -144,7 +147,7 @@ function build_from_source() { function run_all_tests() { rm -f "${OUTPUT_PATH_PREFIX}"_run_all_tests - mvn test -fae -P runAllTests -Dsurefire.rerunFailingTestsCount=3 2>&1 | tee "${OUTPUT_PATH_PREFIX}"_run_all_tests && UNIT_TEST_PASSED=1 + mvn package ${MVN_ARGS} -Dsurefire.rerunFailingTestsCount=3 2>&1 | tee "${OUTPUT_PATH_PREFIX}"_run_all_tests && UNIT_TEST_PASSED=1 } function execute() { @@ -160,7 +163,7 @@ function print_when_exit() { * Built from source (${JAVA_VERSION}): $( ((BUILD_FROM_SOURCE_PASSED)) && echo "ok" || echo "failed" ) - mvn clean install -DskipTests * Unit tests pass (${JAVA_VERSION}): $( ((UNIT_TEST_PASSED)) && echo "ok" || echo "failed" ) - - mvn test -P runAllTests + - mvn package ${MVN_ARGS} __EOF if ((CHECKSUM_PASSED)) && ((SIGNATURE_PASSED)) && ((RAT_CHECK_PASSED)) && ((BUILD_FROM_SOURCE_PASSED)) && ((UNIT_TEST_PASSED)) ; then exit 0 -- 2.16.2