tests.sh 222 B

1234567891011121314
  1. #!/bin/bash
  2. # make sure we are in the right directory
  3. SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
  4. cd $SCRIPT_DIR
  5. set -eu
  6. if [ $# -lt 1 ]
  7. then
  8. pytest -v -x
  9. else
  10. pytest "$@"
  11. fi