From 9ce31fa84a9995641958b4b6570635289d5ae5f4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 10 Oct 2011 15:37:39 +0200 Subject: [PATCH] simplify test Signed-off-by: Nico Schottelius --- build.sh | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/build.sh b/build.sh index 63c380cf..0464defc 100755 --- a/build.sh +++ b/build.sh @@ -126,25 +126,15 @@ case "$1" in | xargs rm -f ;; - t) + test) shift # skip t + set -x + if [ $# -lt 1 ]; then + set -- cdist.test + fi PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \ python3 -m unittest "$@" - ;; - - test) - PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \ - python3 -m cdist.test - ;; - - test-install) - PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \ - python3 -m unittest cdist.test.test_install - ;; - - test-all) - PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \ - python3 -m unittest discover lib/cdist/test '*.py' + ;; *)