]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/gnutls-cli-debug.sh: don't unset system priority settings
authorDaiki Ueno <ueno@gnu.org>
Tue, 9 Feb 2021 14:26:07 +0000 (15:26 +0100)
committerDaiki Ueno <ueno@gnu.org>
Tue, 9 Feb 2021 14:26:07 +0000 (15:26 +0100)
When the test is exercised, GNUTLS_SYSTEM_PRIORITY_FILE is set in many
places, such as TESTS_ENVIRONMENT tests/Makefile.am or a packaging
system that runs the test in a restricted environment.  Unsetting it
after a temporary use forces the remaining part of the test to use the
default system priority, which might not be the intention of the user.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/gnutls-cli-debug.sh

index a73910dea681120b0d26d368534963e8e55e4c35..3c3e2214e56f88b06028b17df55f4f3df625c4b5 100755 (executable)
@@ -184,13 +184,11 @@ cat <<_EOF_ > ${TMPFILE}
 tls-disabled-cipher = CAMELLIA-128-CBC
 tls-disabled-cipher = CAMELLIA-256-CBC
 _EOF_
-export GNUTLS_SYSTEM_PRIORITY_FILE="${TMPFILE}"
 
+GNUTLS_SYSTEM_PRIORITY_FILE="${TMPFILE}" \
 timeout 1800 datefudge "2017-08-9" \
 "${DCLI}" -p "${PORT}" localhost >$OUTFILE 2>&1 || fail ${PID} "gnutls-cli-debug run should have succeeded!"
 
-unset GNUTLS_SYSTEM_PRIORITY_FILE
-
 kill ${PID}
 wait