Skip to content

Commit df5d5a1

Browse files
committed
wrapping pytest.main() call in the runtests.py; fixing the script exit code
1 parent 21c6f25 commit df5d5a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python
2+
import sys
23
import pytest
34

4-
pytest.main()
5+
6+
# sys.exit() is required otherwise the wrapper exits
7+
# with exit code 0, regardless the pytest.main() execution
8+
sys.exit(pytest.main())

0 commit comments

Comments
 (0)