container: Fix waiting until plinth setup is finished when running tests

Tests performed:
- Without starting `freedombox-develop` inside the container,
`./container run-tests ...` waits until plinth setup is finished and
then runs the functional tests.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa 2025-04-12 09:59:58 +03:00 committed by Sunil Mohan Adapa
parent bd207ee24f
commit fd117a50da
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -249,7 +249,7 @@ then
else
echo -n "> In machine: Starting plinth ... "
sudo -u plinth /freedombox/run --develop > plinth.log 2>&1 &
while ! grep -q "Setup thread finished" plinth.log
while ! grep -q "Setup finished" plinth.log
do
sleep 1
echo -n .