Package: webdis Version: 0.1.9+dfsg-1 Tags: ftbfs, hppa, patch
webdis sometimes FTBFS on hppa, because the tests failed like this: Generating config files.. Starting redis-server.. Starting webdis.. Setting up redis/webdis server FAILED. Problem is, that starting webdis may take some time, while the test script tries to immediately read the port number from the log file (which sometimes hasn't been written completely yet). Adding a small delay like this patch (copy & pasted) fixes it: deller@phantom:~/build/webdis/webdis-0.1.9+dfsg$ gendiff . .org diff -up ./debian/test.sh.org ./debian/test.sh --- ./debian/test.sh.org 2022-10-18 06:35:25.240497687 +0000 +++ ./debian/test.sh 2022-10-18 06:35:04.308620049 +0000 @@ -41,6 +41,8 @@ set_up() { --pidfile ${WEBDIS_PIDFILE} \ --exec $WEBDIS_BIN -- ${WEBDIS_CONFFILE} || return 2 + sleep 3 + WEBDIS_PID=`cat $WEBDIS_PIDFILE` export WEBDIS_PORT=`grep -o 'listening on port.*$' ${WEBDIS_LOGFILE}| \ tail -1|cut -d " " -f 4`