Skip to content

Commit 3ce507f

Browse files
committed
fix(ci): ignore errors so we can capture the exit status
The rest of the script was not executed because we run the script under `-e`. Disable errors so we can capture the exit code and print the information. Fixes: a46b60e Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent a46b60e commit 3ce507f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/test.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ cp -ruvf build/img /srv
3636

3737
cd tests
3838
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} --pdbcls=IPython.terminal.debugger:TerminalPdb"
39-
pytest "$@"
40-
ret=$?
39+
40+
{
41+
# disable errexit momentarily so we can capture the exit status
42+
set +e
43+
pytest "$@"
44+
ret=$?
45+
set -e
46+
}
4147

4248
# if the tests failed and we are running in CI, print some disk usage stats
4349
# to help troubleshooting

0 commit comments

Comments
 (0)