Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t/lib-httpd: require SANITY prereq
[gitweb.git]
/
t
/
lib-httpd.sh
diff --git
a/t/lib-httpd.sh
b/t/lib-httpd.sh
index b43162ea2a932deb521381863900279c8d87f2b1..d8918821e6e19aafd1411000aefb8c0583092e96 100644
(file)
--- a/
t/lib-httpd.sh
+++ b/
t/lib-httpd.sh
@@
-36,6
+36,11
@@
then
test_done
fi
+if ! test_have_prereq SANITY; then
+ test_skip_or_die $GIT_TEST_HTTPD \
+ "Cannot run httpd tests as root"
+fi
+
HTTPD_PARA=""
for DEFAULT_HTTPD_PATH in '/usr/sbin/httpd' '/usr/sbin/apache2'