From: Julian Andres Klode Date: Thu, 17 Mar 2016 11:49:03 +0000 (+0100) Subject: test framework: Pass -n to lsof to speed up finding the https port X-Git-Tag: 1.2.8~11 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/6970f6e6c73116e7c5b488eefe81cd4de98c9170 test framework: Pass -n to lsof to speed up finding the https port There is no point in resolving all addresses to their names, this just seriously slows the setup phase down. So just pass -n to not resolve names anymore. Gbp-Dch: ignore --- diff --git a/test/integration/framework b/test/integration/framework index a1db232e9..40b5bb98b 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -1231,7 +1231,7 @@ connect = $APTHTTPPORT msgdie 'Could not fork stunnel4 successfully' fi addtrap 'prefix' "kill ${PID};" - APTHTTPSPORT="$(lsof -i | awk "/^stunnel4 / && \$2 == \"${PID}\" {print \$9; exit; }" | cut -d':' -f 2)" + APTHTTPSPORT="$(lsof -i -n | awk "/^stunnel4 / && \$2 == \"${PID}\" {print \$9; exit; }" | cut -d':' -f 2)" webserverconfig 'aptwebserver::port::https' "$APTHTTPSPORT" "https://localhost:${APTHTTPSPORT}" rewritesourceslist "https://localhost:${APTHTTPSPORT}/" }