Skip to content

Commit e1157ec

Browse files
committed
docker_appimage_tests.sh: print which test failed
1 parent 258ef54 commit e1157ec

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/scripts/Linux/docker_appimage_tests.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh -eu
22

3+
echo "Starting Docker AppImage tests..." >&2
4+
35
mkdir aitest-context # empty build context
46
./UltraGrid-"$VERSION"-x86_64.AppImage --appimage-extract
57

@@ -27,7 +29,19 @@ for n in $test_list; do
2729
name=$(printf "%s" "$n" | tr -c '[:alnum:]' '[_*]') # replace :. with _ for valid identifer
2830
eval "${name}_pid"=$!
2931
done
32+
33+
set +e
34+
rc=0
3035
for n in $test_list; do
3136
name=$(printf "%s" "$n" | tr -c '[:alnum:]' '[_*]')
32-
eval wait "\$${name}_pid"
37+
if eval wait "\$${name}_pid"; then
38+
echo "Docker AppImage test $name succeeded" >&2
39+
else
40+
rc=$?
41+
echo "Docker AppImage test $name FAILED with error code $rc" >&2
42+
fi
3343
done
44+
if [ $rc -ne 0 ]; then
45+
exit $rc
46+
fi
47+
echo "All Docker AppImage tests succeeded" >&2

0 commit comments

Comments
 (0)