Skip to content
Snippets Groups Projects
Commit eb3ecb4d authored by Marco Villegas's avatar Marco Villegas
Browse files

Check server output on rapper test

Thanks to Christian Ehrhardt, and Adrian Bunk for providing an
equivalent change over BTS #1001593.

This change uses a slightly different approach, but since it is already
used for the other test, it makes sense to use the same idea, to a new
dependency over netcat is not added.

Similar to the change added at 173cbfed,
add minimal sever testing to avoid the race of php web server not
launching fast enough.
parent 3c02c3b3
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,15 @@ set -e
php --server localhost:10101 --docroot debian/tests/data &
SERVER_PID=$!
set +e
curl --fail --silent --output /dev/null http://localhost:10101/foaf.rdf
if [ $? -ne 0 ]
then
# Likely 22, the server may not be ready, give it a bit of time.
sleep 2
fi
set -e
# A graphviz source file can be created.
php debian/tests/rapper.php > sample.dot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment