Trying to modify run.sh so it waits for the Xvfb server to start accepting connections.

This commit is contained in:
polar 2017-09-20 09:45:52 -04:00
parent 15dc14f5b6
commit fac50c9bc6

2
run.sh
View file

@ -11,7 +11,7 @@ while [ ${p} -lt 3000 ]
break break
fi fi
done done
echo The port is ${port} echo The port is ${port}
if ${port}; then if ${port}; then
timeout 15 bash -c "until echo > /dev/tcp/localhost/${port}; do sleep 0.5; done" timeout 15 bash -c "until echo > /dev/tcp/localhost/${port}; do sleep 0.5; done"