mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 05:01:12 +00:00
wait_server_start: warn if lsof is not available
If lsof is not available, wait_server_start uses a fixed timeout, which can trigger a race condition if the timeout turns out to be too short. Emit a warning so that we know this is going on from the test logs.
This commit is contained in:
parent
3f69e54f3b
commit
784f41c90d
|
@ -878,6 +878,7 @@ if type lsof >/dev/null 2>/dev/null; then
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
echo "Warning: lsof not available, wait_server_start = sleep"
|
||||||
wait_server_start() {
|
wait_server_start() {
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,6 +254,7 @@ if type lsof >/dev/null 2>/dev/null; then
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
echo "Warning: lsof not available, wait_server_start = sleep $START_DELAY"
|
||||||
wait_server_start() {
|
wait_server_start() {
|
||||||
sleep "$START_DELAY"
|
sleep "$START_DELAY"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue