whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Simplify check
Date Thu, 24 Oct 2019 13:11:04 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 50b3009  Simplify check
50b3009 is described below

commit 50b30092c3a6e21178b16aac9ed8209018711bf9
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Oct 24 14:11:00 2019 +0100

    Simplify check
    
    No need to test for presence of SVN dir if override flag is specified
---
 lib/spec/spec_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/spec/spec_helper.rb b/lib/spec/spec_helper.rb
index f48d0f7..4041bea 100644
--- a/lib/spec/spec_helper.rb
+++ b/lib/spec/spec_helper.rb
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift '/srv/whimsy/lib'
 
 require 'whimsy/asf'
 # Override with test data if there is no checkout available (allows local use)
-unless ASF::SVN.find('apmail_bin') and not ENV['RAKE_TEST'] == 'TRUE'
+if ENV['RAKE_TEST'] == 'TRUE' or not ASF::SVN.find('apmail_bin')
   TEST_DATA = true # Test data is smaller so some tests need adjusting
   puts "Overriding data directories"
   ASF::SVN['apmail_bin'] = File.expand_path('../test/svn/apmail_bin', __dir__)


Mime
View raw message