mirror of https://github.com/pwndbg/pwndbg
Manually set test script exit code (#2199)
This commit is contained in:
parent
c85d16b246
commit
6937566aa8
5
tests.sh
5
tests.sh
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
# Run integration tests
|
# Run integration tests
|
||||||
(cd tests/gdb-tests && python3 tests.py $@)
|
(cd tests/gdb-tests && python3 tests.py $@)
|
||||||
|
exit_code=$?
|
||||||
|
|
||||||
COV=0
|
COV=0
|
||||||
# Run unit tests
|
# Run unit tests
|
||||||
|
@ -17,3 +18,7 @@ if [ $COV -eq 1 ]; then
|
||||||
else
|
else
|
||||||
pytest tests/unit-tests
|
pytest tests/unit-tests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit_code=$((exit_code + $?))
|
||||||
|
|
||||||
|
exit $exit_code
|
||||||
|
|
Loading…
Reference in New Issue