[ARVADOS] updated: d9752d891b40a8aa800ea1bb025f9c371d1fe454

git at public.curoverse.com git at public.curoverse.com
Mon Jan 13 17:31:06 EST 2014


Summary of changes:
 sdk/cli/test/test_arv-put.rb |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

       via  d9752d891b40a8aa800ea1bb025f9c371d1fe454 (commit)
      from  976a754dc7fceee767322ae964c287b63595211f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit d9752d891b40a8aa800ea1bb025f9c371d1fe454
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Jan 13 14:29:28 2014 -0800

    Fix test setup.
    
    Even if ./tmp/ already exists, we might need mkdir ./tmp/empty_dir

diff --git a/sdk/cli/test/test_arv-put.rb b/sdk/cli/test/test_arv-put.rb
index 5dca976..53f05de 100644
--- a/sdk/cli/test/test_arv-put.rb
+++ b/sdk/cli/test/test_arv-put.rb
@@ -3,11 +3,8 @@ require 'digest/md5'
 
 class TestArvPut < Minitest::Test
   def setup
-    begin
-      Dir.mkdir './tmp'
-      Dir.mkdir './tmp/empty_dir'
-    rescue Errno::EEXIST
-    end
+    begin Dir.mkdir './tmp' rescue Errno::EEXIST end
+    begin Dir.mkdir './tmp/empty_dir' rescue Errno::EEXIST end
     File.open './tmp/empty_file', 'wb' do
     end
     File.open './tmp/foo', 'wb' do |f|

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list