diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-27 00:31:03 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-27 00:31:03 +0200 |
commit | 6a68315e938eb2611806658828ecea86805822e7 (patch) | |
tree | 5ff552cf0e6bac9a35bedaf544cb19332663fa70 /test/integration/run-tests | |
parent | 75d238ba66576c04f257e9d7c0a6995721f1441d (diff) | |
parent | 01d207a5076b6fc37a064645b13f2c6550f58b94 (diff) |
Merge branch 'portability/freebsd'
Diffstat (limited to 'test/integration/run-tests')
-rwxr-xr-x | test/integration/run-tests | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests index 78f24fbaf..fad249994 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -89,7 +89,11 @@ if [ -n "$APT_TEST_JOBS" ]; then if [ "$MSGCOLOR" != 'NO' ]; then export MSGCOLOR='ALWAYS' fi - exec parallel -j "$APT_TEST_JOBS" "./$(basename "$0")" -- $(echo "$TESTLIST") + parallel=parallel + if command -v moreutils-parallel >/dev/null 2>&1; then + parallel=moreutils-parallel + fi + exec $parallel -j "$APT_TEST_JOBS" "./$(basename "$0")" -- $(echo "$TESTLIST") fi TOTAL="$(echo "$TESTLIST" | wc -l)" for testcase in $TESTLIST; do |