Skip to content

Commit d5c0130

Browse files
committed
docker_appimage_tests.sh: print which test failed
Since the tests are run in parallel (and also there is much output), it may be difficult to track which one container actually failed so write at least a summary.
1 parent 258ef54 commit d5c0130

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)