X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/804419029ab1b969c8d2dedb9b3443225058521f..8d1cb6da6e21302c654da3f09de3975af7e4a11f:/test/integration/run-tests diff --git a/test/integration/run-tests b/test/integration/run-tests index 89c3a10e7..78f24fbaf 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -83,12 +83,13 @@ PASS=0 ALL=0 FAILED_TESTS="" DIR="$(readlink -f "$(dirname "$0")")" -TESTLIST="$(find "$DIR" -mindepth 1 -maxdepth 1 -regex '^.*/test-[^/]*$' | sort)" +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") + exec parallel -j "$APT_TEST_JOBS" "./$(basename "$0")" -- $(echo "$TESTLIST") fi TOTAL="$(echo "$TESTLIST" | wc -l)" for testcase in $TESTLIST; do