Skip to content

Commit 1b0b47e

Browse files
committed
Set absolute path to results dir after its creation
1 parent 2ca5a96 commit 1b0b47e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

external/run_all.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ EXTERNALS_DIR="$(cd "${EXTERNALS_DIR}" && pwd)"
1010
if [ -z ${RESULTS_DIR:-} ] ; then
1111
RESULTS_DIR="${HOME}/externalsMatrix"
1212
fi
13-
if [ -e "${RESULTS_DIR}" ] ; then
14-
RESULTS_DIR="$(cd "${RESULTS_DIR}" && pwd)"
15-
fi
1613

1714
if [ -z ${JDKS_DIR:-} ] ; then
1815
JDKS_DIR="${HOME}/externalJdks"
@@ -115,8 +112,13 @@ function runExternalTest() {
115112
popd > /dev/null
116113
}
117114

118-
rm -rf "${RESULTS_DIR}"
119-
mkdir "${RESULTS_DIR}"
115+
function serupResultsDir() {
116+
rm -rf "${RESULTS_DIR}"
117+
mkdir "${RESULTS_DIR}"
118+
RESULTS_DIR="$(cd "${RESULTS_DIR}" && pwd)"
119+
}
120+
121+
serupResultsDir
120122
checkIncludesExcludes
121123
for jdk in $(find "${JDKS_DIR}" -maxdepth 1 | sort -V ); do
122124
if useDirIfPossible ; then continue ; fi

0 commit comments

Comments
 (0)