summaryrefslogtreecommitdiff
path: root/CC/test/test_runner.sh
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
commit6b54d45ca06de445d36ad3ae10446073f652264f (patch)
tree8df4f3385ed573214342c14514ad173a2cb021a5 /CC/test/test_runner.sh
parentfab3d562121e80290004c37a262dc5c0515652ed (diff)
downloadrules-cc-6b54d45ca06de445d36ad3ae10446073f652264f.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.
Diffstat (limited to 'CC/test/test_runner.sh')
-rw-r--r--CC/test/test_runner.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/CC/test/test_runner.sh b/CC/test/test_runner.sh
index 716eaa9..84b9072 100644
--- a/CC/test/test_runner.sh
+++ b/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