]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the UID switch test to work with PKCS#11 build
authorMichal Nowak <mnowak@isc.org>
Wed, 27 Nov 2019 17:19:10 +0000 (17:19 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 27 Nov 2019 17:19:10 +0000 (17:19 +0000)
Forward port of 32fe9a0051fc76be4657fc2742e71d2be6193011 by Ondřej Surý.

bin/tests/system/runtime/tests.sh

index 686ac46241ced279790e255b29e2fc3167231f0b..9fb45bf85fb4a0440505665fe77a16106c27c36b 100644 (file)
@@ -209,6 +209,8 @@ if [ "$(id -u)" -eq 0 ] && [ -z "$CYGWIN" ]; then
     TEMP_NAMED_DIR=$(mktemp -d "$(pwd)/ns2/tmp.XXXXXXXX")
     if [ "$?" -eq 0 ]; then
         copy_setports ns2/named-alt9.conf.in "${TEMP_NAMED_DIR}/named-alt9.conf"
+        export SOFTHSM2_CONF="${TEMP_NAMED_DIR}/softhsm2.conf"
+        sh "$TOP/util/prepare-softhsm2.sh"
         chown -R nobody: "${TEMP_NAMED_DIR}"
         chmod 0700 "${TEMP_NAMED_DIR}"
         ( cd "${TEMP_NAMED_DIR}" && $NAMED -u nobody -c named-alt9.conf -d 99 -g -U 4 >> named$n.run 2>&1 & ) || ret=1