diff options
author | IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> | 2019-09-23 11:44:48 +0200 |
---|---|---|
committer | IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> | 2019-09-23 11:44:48 +0200 |
commit | 07b6af185d3da1e4fefc6dc17cfb4c5ffe52c963 (patch) | |
tree | c1d688480a349374b434cd5c31d5f1219e6af5a9 | |
parent | d759825643dae46e0074054f8356980458cfd672 (diff) |
More verbose output of autopkgtest script
-rwxr-xr-x | debian/tests/testclient | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/tests/testclient b/debian/tests/testclient index 9534692..b9423da 100755 --- a/debian/tests/testclient +++ b/debian/tests/testclient @@ -15,6 +15,9 @@ fi openssl rand -out "${DATAFILE}" ${numbytes} ls -l "${DATAFILE}" + +echo "Starting WebDAV server in ${DAVDIR}" + if [ "x${U}" = "x" ]; then python3 -m pywebdav -l ERROR -P 0 -D "${DAVDIR}" -n 2>&1 & SERVER_PID=$! @@ -29,6 +32,13 @@ sleep 1 port=$(lsof -p ${SERVER_PID} 2>/dev/null | egrep "TCP localhost:.*LISTEN" | sed -e 's|.*TCP localhost:||' -e 's| .*||') echo "connecting to port:${port}" +if [ "x${port}" = "x" ]; then + echo "unable to find listening port of WebDAV-server running as ${SERVER_PID}" + echo "skipping test." + lsof -p ${SERVER_PID} 2>/dev/null | egrep "TCP.*LISTEN" + exit 77 +fi + if [ "x${U}" = "x" ]; then ${testclient} -P "${port}" "${DATAFILE}" else |