]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix run.sh --parallel=1
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 15 Dec 2015 17:26:04 +0000 (18:26 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Jan 2016 11:21:56 +0000 (12:21 +0100)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/run.sh

index 4927a483a5610b98451b259f68d4ab61708549ca..dca9c6c54e8461492b996b0fde8177f297d56959 100755 (executable)
@@ -65,11 +65,9 @@ while [ -n "$1" ]; do
                ;;
        --parallel=*)
                paraller_jobs="${1##--parallel=}"
-               OPTS="$OPTS --parallel"
                ;;
        --parallel)
                paraller_jobs=$(num_cpus)
-               OPTS="$OPTS --parallel"
                ;;
        --exclude=*)
                EXCLUDETESTS="${1##--exclude=}"
@@ -164,6 +162,7 @@ echo
 if [ $paraller_jobs -gt 1 ]; then
        echo "              Executing the tests in parallel ($paraller_jobs jobs)    "
        echo
+       OPTS="$OPTS --parallel"
 fi
 
 count=0