Skip to content

Commit d7ca792

Browse files
committed
Abort Godot when it fails to open dynamic library
1 parent 0b1f993 commit d7ca792

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/composite/godot-itest/action.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ runs:
179179
run: |
180180
cd itest/godot
181181
echo "OUTCOME=itest" >> $GITHUB_ENV
182-
$GODOT4_BIN --headless ${{ inputs.godot-args }} 2>&1 | tee "${{ runner.temp }}/log.txt" | tee >(grep "SCRIPT ERROR:" -q && {
183-
printf "\n -- Godot engine encountered error, abort...\n";
182+
$GODOT4_BIN --headless ${{ inputs.godot-args }} 2>&1 \
183+
| tee "${{ runner.temp }}/log.txt" \
184+
| tee >(grep -E "SCRIPT ERROR:|Can't open dynamic library" -q && {
185+
printf "\n::error::godot-itest: unrecoverable Godot error, abort...\n";
184186
pkill godot
185187
echo "OUTCOME=godot-runtime" >> $GITHUB_ENV
186188
exit 2

0 commit comments

Comments
 (0)