Make tests of URLs parallel

This commit is contained in:
zen0bit 2024-05-03 09:36:17 +02:00
parent 53ee0383a8
commit a328cffbe9
1 changed files with 8 additions and 4 deletions

View File

@ -484,8 +484,8 @@ function test_all() {
test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}"
fi
fi
done
exit 0
done &
wait
}
function os_support() {
@ -3427,8 +3427,10 @@ case "${1}" in
shift
if [ -z "${1}" ]; then
for OS in $(os_support); do
(test_all "${OS}")
(test_all "${OS}") &
done
wait
exit 0
elif [ -z "${2}" ]; then
test_all "${1}"
exit 0
@ -3439,8 +3441,10 @@ case "${1}" in
shift
if [ -z "${1}" ]; then
for OS in $(os_support); do
(test_all "${OS}")
(test_all "${OS}") &
done
wait
exit 0
elif [ -z "${2}" ]; then
test_all "${1}"
exit 0