run_tests.sh 297 B

1234567891011121314
  1. #!/usr/bin/env sh
  2. if [ -z $1 ]; then
  3. test_set='test'
  4. elif [ $1 = 'core' ]; then
  5. test_set="-m not download"
  6. elif [ $1 = 'download' ]; then
  7. test_set="-m download"
  8. else
  9. echo 'Invalid test type "'$1'". Use "core" | "download"'
  10. exit 1
  11. fi
  12. python3 -bb -Werror -m pytest "$test_set"