summaryrefslogtreecommitdiff
path: root/test/integration/run-tests
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-23 23:14:05 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-26 22:17:55 +0200
commit3c973af2ff85e7aae7fbdd84e7633e9d9308dde7 (patch)
tree0f9c28a86f451bbc2bdd0dd0cfe0647e5cac00a7 /test/integration/run-tests
parent144ce9208b39c1bf0d26e8ce071367ee668c0ae2 (diff)
test: Allow moreutils-parallel instead of parallel
That's what it's called on FreeBSD. Gbp-Dch: ignore
Diffstat (limited to 'test/integration/run-tests')
-rwxr-xr-xtest/integration/run-tests6
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