From 516b172d75c8ca85a6245ec5cc168c09a7a6469c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 14 Oct 2011 14:19:18 +0200 Subject: [PATCH] run new test instance by default if no test is specified Signed-off-by: Nico Schottelius --- build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 0464defc..69f0ad92 100755 --- a/build.sh +++ b/build.sh @@ -128,13 +128,13 @@ case "$1" in test) shift # skip t - set -x + export PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib + if [ $# -lt 1 ]; then - set -- cdist.test - fi - PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \ + python3 -m cdist.test + else python3 -m unittest "$@" - + fi ;; *)