]> git.saurik.com Git - apt.git/commitdiff
test framework: Pass -n to lsof to speed up finding the https port
authorJulian Andres Klode <jak@debian.org>
Thu, 17 Mar 2016 11:49:03 +0000 (12:49 +0100)
committerJulian Andres Klode <jak@debian.org>
Thu, 17 Mar 2016 11:49:03 +0000 (12:49 +0100)
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

test/integration/framework

index a1db232e9c7266f7f4e62201099f73cfb91be2af..40b5bb98b11d96f2d4acbcdc200556ccc849bd02 100644 (file)
@@ -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}/"
 }