Skip to content

Commit

Permalink
Set absolute path to results dir after its creation
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Dec 9, 2024
1 parent 28adbe9 commit 22dd1d4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions external/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 22dd1d4

Please sign in to comment.