From 9cdc193c587631986e579c1ba37a8b982be01238 Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 24 Jan 2013 18:47:41 +0900 Subject: all tests green again plus: * added soledad test requirements * removed soledad from run_tests run (+1K tests failing) * added option to run All tests to run_tests script * pep8 cleanup --- run_tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'run_tests.sh') diff --git a/run_tests.sh b/run_tests.sh index a0f0b423..7cbed018 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -15,6 +15,7 @@ function usage { echo " -P, --no-pep8 Don't run pep8" echo " -c, --coverage Generate coverage report" echo " -h, --help Print this usage message" + echo " -A, --all Run all tests, without excluding any" echo " --hide-elapsed Don't print the elapsed time for each test along with slow test list" echo "" echo "Note: with no options specified, the script will try to run the tests in a virtual environment," @@ -33,6 +34,7 @@ function process_option { -p|--pep8) just_pep8=1;; -P|--no-pep8) no_pep8=1;; -c|--coverage) coverage=1;; + -A|--all) alltests=1;; -*) noseopts="$noseopts $1";; *) noseargs="$noseargs $1" esac @@ -51,6 +53,7 @@ wrapper="" just_pep8=0 no_pep8=0 coverage=0 +alltests=0 for arg in "$@"; do process_option $arg @@ -65,6 +68,11 @@ if [ $no_site_packages -eq 1 ]; then installvenvopts="--no-site-packages" fi +# If alltests flag is not set, let's exclude some dirs that are troublesome. +if [ $alltests -eq 0 ]; then + noseopts="$noseopts --exclude-dir=src/leap/soledad" +fi + function run_tests { # Just run the test suites in current environment ${wrapper} $NOSETESTS -- cgit v1.2.3