summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/prepare.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/prepare.sh b/tests/prepare.sh
index c8e70da7..873fd801 100755
--- a/tests/prepare.sh
+++ b/tests/prepare.sh
@@ -34,11 +34,14 @@ cp "${srcdir}/docroot/"*.html \
"${srcdir}/docroot/"*.txt \
"${tmpdir}/servers/www.example.org/pages/"
+# copy configs to alternate build root, if alternate build root is used
+# (tests will fail to run from an alternate build root on platforms
+# on which cp -n is not supported, such as NetBSD and OpenBSD)
cp -n "${srcdir}/"*.conf \
"${srcdir}/lighttpd.user" \
"${srcdir}/lighttpd.htpasswd" \
"${srcdir}/var-include-sub.conf" \
- "${top_builddir}/tests/" || true
+ "${top_builddir}/tests/" 2>/dev/null || true
# create some content
touch "${tmpdir}/servers/www.example.org/pages/image.jpg" \