X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/3685f84d8c0abfbddd12e034561e5f3fe8cbf2eb..4ff5e237d5685be187a75c563b86e80ea3e7cc01:/test/integration/run-tests diff --git a/test/integration/run-tests b/test/integration/run-tests index f2a266139..fad249994 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -83,12 +83,17 @@ PASS=0 ALL=0 FAILED_TESTS="" DIR="$(readlink -f "$(dirname "$0")")" -TESTLIST="$(run-parts --list "$DIR" --regex '^test-.*$')" +cd "$DIR" +TESTLIST="$(find . -mindepth 1 -maxdepth 1 -regex '^\./test-[^/]*$' | sort)" if [ -n "$APT_TEST_JOBS" ]; then if [ "$MSGCOLOR" != 'NO' ]; then export MSGCOLOR='ALWAYS' fi - exec parallel -j "$APT_TEST_JOBS" "$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