Skip to content

Commit

Permalink
CI: Improve .github/scripts/ci-linux-run-tests.sh
Browse files Browse the repository at this point in the history
Previously the tests failed but still passed??
  • Loading branch information
kernc committed Jan 4, 2024
1 parent 3d4200d commit 006d0a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/scripts/ci-linux-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# Run tests under X with a window manager
# We check test.log in case Qt segfaulted on exit
set -eux
xvfb-run -a -- sh -c '
xvfb-run -a -- bash -c '
set -eux
set -o pipefail
flwm &
trap "kill $!" EXIT
time catchsegv coverage run -m efck.tests -v | tee test.log ||
grep -Pq "^OK$" test.log
'
time catchsegv coverage run -m efck.tests -v |& tee /tmp/test.log
'
grep -Pq '^OK$' /tmp/test.log

0 comments on commit 006d0a1

Please sign in to comment.