changeset 77:82ca5551fea4

Rename test() to runtest() since test is a builtin in some shells
author jcoomes
date Fri, 26 Oct 2012 14:13:04 -0700
parents 1d922a43886c
children c7db20a4cc60
files mktests.sh
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mktests.sh	Tue Sep 11 09:50:00 2012 -0700
+++ b/mktests.sh	Fri Oct 26 14:13:04 2012 -0700
@@ -41,7 +41,7 @@
 
 datefile=date
 
-test() {
+runtest() {
   date >>$datefile; hg add --exclude 'z*'
   export HGUSER=$1; shift
   if [ -z "$*" ]; then
@@ -53,11 +53,11 @@
   fi
 }
 
-pass() { test $pass_author "$@"; }
-pass_lax() { test $pass_author_lax "$@"; }
-fail() { test $fail_author "$@"; }
-fail_lax() { test $fail_author_lax "$@"; }
-setup() { test $setup_author "$@"; }
+pass() { runtest $pass_author "$@"; }
+pass_lax() { runtest $pass_author_lax "$@"; }
+fail() { runtest $fail_author "$@"; }
+fail_lax() { runtest $fail_author_lax "$@"; }
+setup() { runtest $setup_author "$@"; }
 
 
 # Merge-changeset comments
@@ -274,7 +274,7 @@
 fail ci -m "$(bugid): Buggy bug bug bug
 Reviewed-by: fang"
 
-test fang ci -m "$(bugid): Buggy bug bug bug
+runtest fang ci -m "$(bugid): Buggy bug bug bug
 Reviewed-by: jcoomes"
 
 fail ci -m "$(bugid): Solo self-review