summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-10-31 12:35:46 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-10-31 13:18:57 +0100
commit45b69b5524b9c22ac5ef1d25e084d53a1a8be9b1 (patch)
tree68f791547d1449ca820561f50d037bb6b7d0298d
parent5afb9345f74a41dbdd96953602c1b2f6941dee83 (diff)
downloadjustbuild-45b69b5524b9c22ac5ef1d25e084d53a1a8be9b1.tar.gz
CC/test test_runner.sh: correctly report the reuslt
The test runner is supposed to report the reult in a file called 'result' in the top-level action directory. However, before starting the actual test, it changes the working directory to the subdir 'work' where the input of the test action is located. Therefore, when reporting the result, the correct file name is '../result'. Fix this.
-rw-r--r--rules/CC/test/test_runner.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/CC/test/test_runner.sh b/rules/CC/test/test_runner.sh
index 716eaa99..84b9072f 100644
--- a/rules/CC/test/test_runner.sh
+++ b/rules/CC/test/test_runner.sh
@@ -42,7 +42,7 @@ else
RESULT=FAIL
fi
date +%s > ../time-stop
-echo "${RESULT}" > result
+echo "${RESULT}" > ../result
if [ "${RESULT}" '!=' PASS ]
then