Skip to content

Commit 503f3e9

Browse files
committed
Made run.sh working out of cwd
1 parent 07df9b9 commit 503f3e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

run.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer
1616
done
1717
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
1818

19+
pushd ${SCRIPT_DIR}
20+
1921
OS=`uname -s`
2022
CYGWIN="false"
2123
case "$OS" in
@@ -130,10 +132,18 @@ mkdir -p test.${TIME}/jdk/JTwork test.${TIME}/jdk/JTreport
130132

131133
tar -czf test.${TIME}.tar.gz test.${TIME}/jdk/JTwork test.${TIME}/jdk/JTreport
132134

135+
popd
136+
137+
if [ ! `readlink -f ${SCRIPT_DIR}` == `pwd` ] ; then
138+
mv ${SCRIPT_DIR}/test.${TIME} .
139+
mv -v ${SCRIPT_DIR}/test.${TIME}.tar.gz .
140+
fi
141+
133142
if ! [ -f test.${TIME}/tests.log ] ; then
134143
echo "Missing tests.log!" 1>&2
135144
exit 1
136145
fi
146+
137147
# passes should be present in tests.log
138148
grep -Eqi '^passed:' test.${TIME}/tests.log || exit 1
139149
# check for failures/errors in tests.log

0 commit comments

Comments
 (0)