From 76489e579bb54d29320a81c4224f63aa35e0b837 Mon Sep 17 00:00:00 2001 From: Gautham B A Date: Mon, 25 Mar 2024 21:46:03 +0530 Subject: [PATCH] HADOOP-19127. Do not run unit tests on Windows pre-commit CI (#6672) --- dev-support/bin/hadoop.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-support/bin/hadoop.sh b/dev-support/bin/hadoop.sh index fd9363e66b..dbda5cad8c 100755 --- a/dev-support/bin/hadoop.sh +++ b/dev-support/bin/hadoop.sh @@ -387,6 +387,11 @@ function personality_modules fi ;; 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" if [[ "${BUILDMODE}" = full ]]; then ordering=mvnsrc