From b3a304f91f9c896af5da799b29d35d012fd623d7 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Tue, 9 Aug 2022 16:21:12 +0200 Subject: [PATCH] Fix PTL run-launcher on ARM when mvnd installed --- testing/trino-product-tests-launcher/bin/run-launcher | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/trino-product-tests-launcher/bin/run-launcher b/testing/trino-product-tests-launcher/bin/run-launcher index a4e2a2f9fc9c..39c5bd3b1d80 100755 --- a/testing/trino-product-tests-launcher/bin/run-launcher +++ b/testing/trino-product-tests-launcher/bin/run-launcher @@ -2,7 +2,8 @@ target="${BASH_SOURCE%/*/*}/target" -if command -v mvnd >/dev/null; then +# Disable mvnd for scripts on ARM until https://github.com/apache/maven-mvnd/issues/671 is fixed +if command -v mvnd >/dev/null && test "$(arch)" != arm64; then # Using mvnd here can save more than 2 seconds compared to ./mvnw startup cost. This is especially important # when invoking inspection commands like --help, env list, etc. # See https://github.com/apache/maven-mvnd/issues/604 for why mvnd.logPurgePeriod is set.