diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
commit | 49806778ce03114cb2e29b1adc53020de2299abe (patch) | |
tree | dc65c98e3b766448d449bc53fd10989a9b6a3772 /t/test-lib.sh | |
parent | 3a5af445e2a3af83cd2e7e68b2d4c0d1dc8079b5 (diff) | |
download | rainbows-49806778ce03114cb2e29b1adc53020de2299abe.tar.gz |
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 13 |
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 () { |