Skip to content

Commit

Permalink
Merge branch 'jk/do-not-run-httpd-tests-as-root'
Browse files Browse the repository at this point in the history
* jk/do-not-run-httpd-tests-as-root:
  t/lib-httpd: require SANITY prereq
  • Loading branch information
Junio C Hamano committed Jun 16, 2014
2 parents 499168a + a1a3011 commit fd80021
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/lib-httpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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'
Expand Down

0 comments on commit fd80021

Please sign in to comment.