Ensure that a clean environment is used to launch Nginx in tests

This avoids potential issues when running the tests in environments which
might set variables which Nginx tries to read on startup. For example,
the $NGINX variable was being picked from the Travis-CI build matrix
configuration.
pull/55/head
Adrian Perez de Castro 8 years ago
parent 3789187861
commit 038434dd9f
No known key found for this signature in database
GPG Key ID: 91C559DBE4C9123B

@ -40,7 +40,7 @@ rm -f "${NGINX_CONF}" "${NGINX_PID}"
mkdir -p "${PREFIX}/logs"
function nginx () {
"${PREFIX}/sbin/nginx" "$@"
env - PATH="${PATH}" "${PREFIX}/sbin/nginx" "$@"
}
function nginx_conf () {

Loading…
Cancel
Save