about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
commit49806778ce03114cb2e29b1adc53020de2299abe (patch)
treedc65c98e3b766448d449bc53fd10989a9b6a3772 /t/test-lib.sh
parent3a5af445e2a3af83cd2e7e68b2d4c0d1dc8079b5 (diff)
downloadrainbows-49806778ce03114cb2e29b1adc53020de2299abe.tar.gz
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 687ad3f..f8337ac 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -23,12 +23,18 @@ then
         t2???-thread-spawn-*.sh) model=ThreadSpawn ;;
         t3???-revactor-*.sh) model=Revactor ;;
         t4???-rev-*.sh) model=Rev ;;
+        *) model=any ;;
         esac
 fi
 
 set -u
 ruby="${ruby-ruby}"
 
+case $model in
+Rev) require_rev ;;
+Revactor) require_revactor ;;
+esac
+
 # ensure a sane environment
 TZ=UTC LC_ALL=C LANG=C
 export LANG LC_ALL TZ
@@ -72,13 +78,6 @@ require_rev() {
         fi
 }
 
-require_for_model () {
-        case $model in
-        Rev) require_rev ;;
-        Revactor) require_revactor ;;
-        esac
-}
-
 # given a list of variable names, create temporary files and assign
 # the pathnames to those variables
 rtmpfiles () {