Skip to content

Instantly share code, notes, and snippets.

@veox
Last active August 30, 2018 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veox/e626ccfe5702630d64716f719ca4b1b2 to your computer and use it in GitHub Desktop.
Save veox/e626ccfe5702630d64716f719ca4b1b2 to your computer and use it in GitHub Desktop.
#!/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