Last active
August 30, 2018 13:07
-
-
Save veox/e626ccfe5702630d64716f719ca4b1b2 to your computer and use it in GitHub Desktop.
`pytest` + `git bisect run` helper for https://github.com/ethereum/py-evm/issues/1152#issuecomment-417284202
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# simple wrapper for py-evm git bisection of submodule | |
# RUN AS: | |
# cd fixtures | |
# git bisect start develop 47b09f42c0681548a00da5ab1c98808b368af49a -- | |
# git bisect run ../checkfail.sh | |
# <elevator music> | |
# git bisect log | |
# git bisect reset | |
# NOTE: assuming already in virtualenv! | |
# NOTE: pytest exit codes: | |
# https://docs.pytest.org/en/latest/usage.html#possible-exit-codes | |
cd .. | |
pytest --cache-clear --quiet --exitfirst --show-capture=no -k "test_state_fixtures" | |
exitcode=$? | |
echo "DEBUG: pytest exited with code $exitcode" | |
# if [ $exitcode -ne 0 ]; then | |
# # exit code non-zero - will mark bisect commit bad | |
# # NOTE: add stuff here if needed | |
# else | |
# # exit code zero - will mark bisect commit good | |
# # NOTE: add stuff here if needed | |
# fi | |
exit $exitcode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment