[ARVADOS] updated: 57813e0183970d5f37b6e7ad4ded517bc35c98e6
git at public.curoverse.com
git at public.curoverse.com
Tue Nov 18 16:50:00 EST 2014
Summary of changes:
sdk/cli/test/test_arv-collection-create.rb | 4 +---
sdk/cli/test/test_arv-put.rb | 13 ++++++-------
2 files changed, 7 insertions(+), 10 deletions(-)
via 57813e0183970d5f37b6e7ad4ded517bc35c98e6 (commit)
from d677ef9c9b8dda9592be9e350c71e76058fc2c57 (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 57813e0183970d5f37b6e7ad4ded517bc35c98e6
Author: radhika <radhika at curoverse.com>
Date: Tue Nov 18 16:38:07 2014 -0500
4156: minor updates
diff --git a/sdk/cli/test/test_arv-collection-create.rb b/sdk/cli/test/test_arv-collection-create.rb
index d1f4a51..3dc4bdd 100644
--- a/sdk/cli/test/test_arv-collection-create.rb
+++ b/sdk/cli/test/test_arv-collection-create.rb
@@ -14,9 +14,7 @@ class TestCollectionCreate < Minitest::Test
manifest_text: foo_manifest
}.to_json)
end
-
- match = /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(out)
- assert_equal true, (match and match[1] and !match[1].nil?)
+ assert /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(out)
assert_equal '', err
$stderr.puts err
end
diff --git a/sdk/cli/test/test_arv-put.rb b/sdk/cli/test/test_arv-put.rb
index 7a9c4b9..2f20e18 100644
--- a/sdk/cli/test/test_arv-put.rb
+++ b/sdk/cli/test/test_arv-put.rb
@@ -82,7 +82,7 @@ class TestArvPut < Minitest::Test
end
$stderr.write err
assert_match '', err
- assert_equal true, match_collection_uuid(out)
+ assert match_collection_uuid(out)
end
def test_as_stream
@@ -99,7 +99,7 @@ class TestArvPut < Minitest::Test
assert arv_put('--manifest', '--progress', './tmp/foo')
end
assert_match /%/, err
- assert_equal true, match_collection_uuid(out)
+ assert match_collection_uuid(out)
end
def test_batch_progress
@@ -108,7 +108,7 @@ class TestArvPut < Minitest::Test
end
assert_match /: 0 written 3 total/, err
assert_match /: 3 written 3 total/, err
- assert_equal true, match_collection_uuid(out)
+ assert match_collection_uuid(out)
end
def test_progress_and_batch_progress
@@ -144,7 +144,7 @@ class TestArvPut < Minitest::Test
end
$stderr.write err
assert_match '', err
- assert_equal true, match_collection_uuid(out)
+ assert match_collection_uuid(out)
end
def test_read_from_implicit_stdin_implicit_manifest
@@ -174,7 +174,7 @@ class TestArvPut < Minitest::Test
end
$stderr.write err
assert_match '', err
- assert_equal true, match_collection_uuid(out)
+ assert match_collection_uuid(out)
end
protected
@@ -192,7 +192,6 @@ class TestArvPut < Minitest::Test
end
def match_collection_uuid(uuid)
- match = /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(uuid)
- match and match[1] and !match[1].nil?
+ /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(uuid)
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list