[ARVADOS] created: 1.3.0-1062-g3e482b90a

Git user git at public.curoverse.com
Tue Jun 11 18:10:56 UTC 2019


        at  3e482b90a448ec98370416a21a55fa65b91098dc (commit)


commit 3e482b90a448ec98370416a21a55fa65b91098dc
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Tue Jun 11 14:08:26 2019 -0400

    Test setUp sets cwltool global names set used to ensure unique names
    
    no issue #
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/sdk/cwl/tests/test_container.py b/sdk/cwl/tests/test_container.py
index b62229fbc..c22ece38b 100644
--- a/sdk/cwl/tests/test_container.py
+++ b/sdk/cwl/tests/test_container.py
@@ -56,6 +56,9 @@ class CollectionMock(object):
 
 class TestContainer(unittest.TestCase):
 
+    def setUp(self):
+        cwltool.process._names = set()
+
     def helper(self, runner, enable_reuse=True):
         document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.1")
 
@@ -823,6 +826,9 @@ class TestContainer(unittest.TestCase):
 
 
 class TestWorkflow(unittest.TestCase):
+    def setUp(self):
+        cwltool.process._names = set()
+
     def helper(self, runner, enable_reuse=True):
         document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.1")
 
diff --git a/sdk/cwl/tests/test_job.py b/sdk/cwl/tests/test_job.py
index d6d9b485e..f08e14f7c 100644
--- a/sdk/cwl/tests/test_job.py
+++ b/sdk/cwl/tests/test_job.py
@@ -35,6 +35,9 @@ if not os.getenv('ARVADOS_DEBUG'):
 
 class TestJob(unittest.TestCase):
 
+    def setUp(self):
+        cwltool.process._names = set()
+
     def helper(self, runner, enable_reuse=True):
         document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.1")
 
@@ -345,6 +348,10 @@ class TestJob(unittest.TestCase):
 
 
 class TestWorkflow(unittest.TestCase):
+
+    def setUp(self):
+        cwltool.process._names = set()
+
     def helper(self, runner, enable_reuse=True):
         document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.1")
 
diff --git a/sdk/cwl/tests/test_submit.py b/sdk/cwl/tests/test_submit.py
index d2c4d9c2e..1dbd968ea 100644
--- a/sdk/cwl/tests/test_submit.py
+++ b/sdk/cwl/tests/test_submit.py
@@ -17,6 +17,7 @@ import logging
 import mock
 import sys
 import unittest
+import cwltool.process
 
 from io import BytesIO
 
@@ -335,6 +336,10 @@ def stubs(func):
 
 
 class TestSubmit(unittest.TestCase):
+
+    def setUp(self):
+        cwltool.process._names = set()
+
     @mock.patch("arvados_cwl.arvdocker.arv_docker_get_image")
     @mock.patch("time.sleep")
     @stubs

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list