4 echo "Usage: $0 [OPTION]..."
5 echo "Run python-escalatorclient's test suite(s)"
7 echo " -p, --pep8 Just run flake8"
8 echo " -h, --help Print this usage message"
10 echo "This script is deprecated and currently retained for compatibility."
11 echo 'You can run the full test suite for multiple environments by running "tox".'
12 echo 'You can run tests for only python 2.7 by running "tox -e py27", or run only'
13 echo 'the flake8 tests with "tox -e pep8".'
17 command -v tox > /dev/null 2>&1
19 echo 'This script requires "tox" to run.'
20 echo 'You can install it with "pip install tox".'
26 function process_option {
29 -p|--pep8) let just_pep8=1;;
37 if [ $just_pep8 -eq 1 ]; then
42 tox -e py27 $toxargs 2>&1 | tee run_tests.err.log || exit
43 if [ ${PIPESTATUS[0]} -ne 0 ]; then
47 if [ -z "$toxargs" ]; then