]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix runtime test
authorEvan Hunt <each@isc.org>
Sat, 26 Jan 2019 08:54:22 +0000 (00:54 -0800)
committerEvan Hunt <each@isc.org>
Sat, 26 Jan 2019 08:54:22 +0000 (00:54 -0800)
named doesn't understand cygwin paths, so we need to use
`cygpath -aw .` instead of `pwd` to get the absolute path to the
working directory.

bin/tests/system/runtime/setup.sh

index 04cb026a3a6ea7366c081f81446cf2d812be7c88..0a8241facb9216b8ff97b12d690c66c1a709d726 100644 (file)
@@ -25,11 +25,13 @@ mkdir ns2/nope
 if [ 1 = "${CYGWIN:-0}" ]
 then
     setfacl -s user::r-x,group::r-x,other::r-x ns2/nope
+    cwd=`cygpath -aw .`
 else
     chmod 555 ns2/nope
+    cwd=`pwd`
 fi
 
-echo "directory \"`pwd`/ns2\";" > ns2/dir
-echo "directory \"`pwd`/ns2/nope\";" > ns2/nopedir
-echo "managed-keys-directory \"`pwd`/ns2\";" > ns2/mkd
-echo "managed-keys-directory \"`pwd`/ns2/nope\";" > ns2/nopemkd
+echo "directory \"$cwd/ns2\";" > ns2/dir
+echo "directory \"$cwd/ns2/nope\";" > ns2/nopedir
+echo "managed-keys-directory \"$cwd/ns2\";" > ns2/mkd
+echo "managed-keys-directory \"$cwd/ns2/nope\";" > ns2/nopemkd