]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: support 'none' for parallel tests
authorKarel Zak <kzak@redhat.com>
Wed, 9 Oct 2019 10:01:57 +0000 (12:01 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Oct 2019 10:01:57 +0000 (12:01 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
.travis-functions.sh
tests/run.sh

index a608e3ac84c625b5347697af0413e006de8bfa49..4cd145668c99048967b35555470876ec3e5ece71 100755 (executable)
@@ -93,7 +93,7 @@ function check_root
        osx_prepare_check
 
        # TS_OPTS= overwrites default from tests/Makemodule.am
-       sudo -E $MAKE check TS_PARALLEL=' ' TS_OPTS="$make_opts" || return
+       sudo -E $MAKE check "TS_PARALLEL=--parallel=none" TS_OPTS="$make_opts" || return
 
        # root on osx has not enough permission for make install ;)
        [ "$TRAVIS_OS_NAME" = "osx" ] && return
index dfbb102435d75d2ad1168ac58f5221eee178b81e..1c3efdb6e9a808c81a9c914efae82f4da4c83481 100755 (executable)
@@ -93,7 +93,9 @@ while [ -n "$1" ]; do
                ;;
        --parallel=*)
                paraller_jobs="${1##--parallel=}"
-               if ! [ "$paraller_jobs" -ge 0 ] 2>/dev/null; then
+               if [ "$paraller_jobs" = "none" ]; then
+                       paraller_jobs=1
+               elif ! [ "$paraller_jobs" -ge 0 ] 2>/dev/null; then
                        echo "invalid argument '$paraller_jobs' for --parallel="
                        exit 1
                fi
@@ -121,7 +123,7 @@ while [ -n "$1" ]; do
                echo "  --noskip-commands     fail on missing commands"
                echo "  --srcdir=<path>       autotools top source directory"
                echo "  --builddir=<path>     autotools top build directory"
-               echo "  --parallel=<num>      number of parallel test jobs, default: num cpus"
+               echo "  --parallel=<num|none> number of parallel test jobs, default: num cpus"
                echo "  --exclude=<list>      exclude tests by list '<utilname>/<testname> ..'"
                echo
                exit 1