d/t/rapper.sh: avoid test race by waiting for the port to be up
This happens e.g. on Ubuntu s390x tests as seen here
When checked in detail it is just a race between the php started in background and the test trying to access it. Hardening the test against this behavior should improve the overall reliability.
Edited by Christian Ehrhardt