r78594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78593‎ | r78594 | r78595 >
Date:05:08, 19 December 2010
Author:mah
Status:ok
Tags:
Comment:
update install-phpunit.sh so people who read [[Unit_Testing#Installing_PHPUnit|about installing it]] can actually use it.
Modified paths:
  • /trunk/phase3/tests/phpunit/install-phpunit.sh (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/install-phpunit.sh
@@ -1,5 +1,12 @@
22 #!/bin/sh
33
 4+has_binary () {
 5+ if [ -z `which $1` ]; then
 6+ return 1
 7+ fi
 8+ return 0
 9+}
 10+
411 if [ `id -u` -ne 0 ]; then
512 echo '*** ERROR' Must be root to run
613 exit 1

Status & tagging log