summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-03-17 12:49:03 +0100
committerJulian Andres Klode <jak@debian.org>2016-03-17 12:49:03 +0100
commit6970f6e6c73116e7c5b488eefe81cd4de98c9170 (patch)
tree66f1bd13d8ee450e835d870df2e577834d4dd441
parentc030cc931ebfb7228801e5b63f3fc32852825da2 (diff)
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
-rw-r--r--test/integration/framework2
1 files changed, 1 insertions, 1 deletions
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}/"
}