diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-08 07:00:08 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-08 07:00:08 +0000 |
commit | 2760d1e0d459a8e92eadf78cdf9f09d6a3109003 (patch) | |
tree | 57df2907f32e5eaedac9eb927a60ee2e685ad367 /t/test-lib.sh | |
parent | 9110e76b36e224434aaa853625844f3b1ad69ae1 (diff) | |
download | unicorn-2760d1e0d459a8e92eadf78cdf9f09d6a3109003.tar.gz |
In parallel with other of Rubies, of course. We need to rely on RUBY_ENGINE since RUBY_VERSION is 1.8.7 and that conflicts with the most popular MRI version. Since Rubinius doesn't support some command-line options, we still need to rely on MRI for a few things. Also fixing an embarrassing UUoC in the process.
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index e5c4b2f..22497f3 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -7,7 +7,8 @@ set +u set -e RUBY="${RUBY-ruby}" RUBY_VERSION=${RUBY_VERSION-$($RUBY -e 'puts RUBY_VERSION')} -t_pfx=$PWD/trash/$T-$RUBY_VERSION +RUBY_ENGINE=${RUBY_ENGINE-$($RUBY -e 'puts((RUBY_ENGINE rescue "ruby"))')} +t_pfx=$PWD/trash/$T-$RUBY_ENGINE-$RUBY_VERSION set -u PATH=$PWD/bin:$PATH |