Skip to content

Commit 47f2695

Browse files
committed
Fix check.sh capturing wrong exit code
For `itest` command, we looked at exit code from `tee` instead of the Godot invocation.
1 parent afd1030 commit 47f2695

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ function cmd_itest() {
213213
exit 2
214214
})
215215

216-
local exitCode=$?
216+
# PIPESTATUS[0] is Godot's exit code; $? would only give tee's exit code (masking crashes).
217+
local exitCode=${PIPESTATUS[0]}
217218

218219
# Check for unrecoverable errors in log.
219220
if grep -qE "SCRIPT ERROR:|Can't open dynamic library" "$logFile"; then

0 commit comments

Comments
 (0)