HADOOP-19127. Do not run unit tests on Windows pre-commit CI (#6672)

This commit is contained in:
Gautham B A 2024-03-25 21:46:03 +05:30 committed by GitHub
parent 44a249e32a
commit 76489e579b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,6 +387,11 @@ function personality_modules
fi fi
;; ;;
unit) unit)
if [[ "$IS_WINDOWS" && "$IS_WINDOWS" == 1 && (-z "$IS_NIGHTLY_BUILD" || "$IS_NIGHTLY_BUILD" == 0) ]]; then
echo "Won't run unit tests for Windows in pre-commit CI"
return
fi
extra="-Dsurefire.rerunFailingTestsCount=2" extra="-Dsurefire.rerunFailingTestsCount=2"
if [[ "${BUILDMODE}" = full ]]; then if [[ "${BUILDMODE}" = full ]]; then
ordering=mvnsrc ordering=mvnsrc