diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-04-24 14:57:37 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-04-24 14:57:37 +0000 |
| commit | 4acb01360f7d920d0e5ea13f7ad7f1e07a068a2d (patch) | |
| tree | 50d0d28dd5ac3554fafe0a5395d55f15bd989048 | |
| parent | f815b3fe27bd286c7cb9b23c41984eae2f12789f (diff) | |
| parent | a81332fad79be5f3ec615acf8eb9d6e99ed1f9fc (diff) | |
| download | python-openstackclient-4acb01360f7d920d0e5ea13f7ad7f1e07a068a2d.tar.gz | |
Merge "Remove run_tests.sh"
| -rwxr-xr-x | run_tests.sh | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/run_tests.sh b/run_tests.sh deleted file mode 100755 index 0b8cf678..00000000 --- a/run_tests.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -function usage { - echo "Usage: $0 [OPTION]..." - echo "Run python-openstackclient's test suite(s)" - echo "" - echo " -p, --pep8 Just run pep8" - echo " -h, --help Print this usage message" - echo "" - echo "This script is deprecated and currently retained for compatibility." - echo 'You can run the full test suite for multiple environments by running "tox".' - echo 'You can run tests for only python 2.7 by running "tox -e py27", or run only' - echo 'the pep8 tests with "tox -e pep8".' - exit -} - -command -v tox > /dev/null 2>&1 -if [ $? -ne 0 ]; then - echo 'This script requires "tox" to run.' - echo 'You can install it with "pip install tox".' - exit 1; -fi - -just_pep8=0 - -function process_option { - case "$1" in - -h|--help) usage;; - -p|--pep8) let just_pep8=1;; - esac -} - -for arg in "$@"; do - process_option $arg -done - -if [ $just_pep8 -eq 1 ]; then - exec tox -e pep8 -fi - -tox -e py27 $toxargs 2>&1 | tee run_tests.err.log || exit 1 -tox_exit_code=${PIPESTATUS[0]} -if [ 0$tox_exit_code -ne 0 ]; then - exit $tox_exit_code -fi - -if [ -z "$toxargs" ]; then - tox -e pep8 -fi |
