From 1b0b47edc9da3b9d03a106f5ddc27dd4080a9962 Mon Sep 17 00:00:00 2001 From: Jiri Date: Wed, 4 Dec 2024 15:18:17 +0100 Subject: [PATCH] Set absolute path to results dir after its creation --- external/run_all.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/external/run_all.sh b/external/run_all.sh index e2131a555b..c201d473c6 100644 --- a/external/run_all.sh +++ b/external/run_all.sh @@ -10,9 +10,6 @@ EXTERNALS_DIR="$(cd "${EXTERNALS_DIR}" && pwd)" if [ -z ${RESULTS_DIR:-} ] ; then RESULTS_DIR="${HOME}/externalsMatrix" fi -if [ -e "${RESULTS_DIR}" ] ; then - RESULTS_DIR="$(cd "${RESULTS_DIR}" && pwd)" -fi if [ -z ${JDKS_DIR:-} ] ; then JDKS_DIR="${HOME}/externalJdks" @@ -115,8 +112,13 @@ function runExternalTest() { popd > /dev/null } -rm -rf "${RESULTS_DIR}" -mkdir "${RESULTS_DIR}" +function serupResultsDir() { + rm -rf "${RESULTS_DIR}" + mkdir "${RESULTS_DIR}" + RESULTS_DIR="$(cd "${RESULTS_DIR}" && pwd)" +} + +serupResultsDir checkIncludesExcludes for jdk in $(find "${JDKS_DIR}" -maxdepth 1 | sort -V ); do if useDirIfPossible ; then continue ; fi