From 8e78b8a815c2fafcf9428c30a0961932132d790f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jun 2010 23:14:23 +0000 Subject: test: rails 3: automatically run isolate if needed should be safe enough... --- t/t0300-rails3-basic.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/t0300-rails3-basic.sh b/t/t0300-rails3-basic.sh index ebc6317..c20ceef 100755 --- a/t/t0300-rails3-basic.sh +++ b/t/t0300-rails3-basic.sh @@ -14,9 +14,10 @@ esac arch_gems=../tmp/isolate/ruby-$RUBY_VERSION/gems rails_gems=../tmp/isolate/rails-$RAILS_VERSION/gems rails_bin="$rails_gems/rails-$RAILS_VERSION/bin/rails" -test -d "$arch_gems" || die "$arch_gems non existent, run '$RAKE isolate'" -test -d "$rails_gems" || die "$rails_gems non existent, run '$RAKE isolate'" -test -x "$rails_bin" || die "$rails_bin not found, run '$RAKE isolate'" +if ! test -d "$arch_gems" || ! test -d "$rails_gems" || ! test -x "$rails_bin" +then + ( cd ../ && $RAKE isolate ) +fi for i in $arch_gems/*-* $rails_gems/*-* do -- cgit v1.2.3-24-ge0c7