]> 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:14:53 +0000 (17:14 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 27 Nov 2019 17:14:53 +0000 (17:14 +0000)
Forward port of 32fe9a0051fc76be4657fc2742e71d2be6193011 by Ondřej Surý.

(cherry picked from commit c49c41a1adb9fa8ae75fe656692d9935de1d505f)

bin/tests/system/runtime/tests.sh

index 87d83f496d4d79c7faca1ae6026672266d01b63d..38bbe77f8a4f5fe8b00262f6dd698cbe88e4d29c 100644 (file)
@@ -122,6 +122,8 @@ if [ "`id -u`" = 0 ] && [ ! "$CYGWIN" ]; then
     TEMP_NAMED_DIR=`mktemp -d`
     if [ -d "${TEMP_NAMED_DIR}" ]; 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 >> named9.run 2>&1 & )