[ARVADOS] updated: 32db29a06f73c3261aa16283cf9aa19123a8814e
Git user
git at public.curoverse.com
Thu Sep 1 10:32:48 EDT 2016
Summary of changes:
sdk/cwl/tests/test_container.py | 7 +++++--
sdk/cwl/tests/test_job.py | 8 ++++++--
2 files changed, 11 insertions(+), 4 deletions(-)
via 32db29a06f73c3261aa16283cf9aa19123a8814e (commit)
from 8a84fd1883edc4afe7aadde46954048668dbf416 (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 32db29a06f73c3261aa16283cf9aa19123a8814e
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Sep 1 10:32:43 2016 -0400
Fix tests refs #9850
diff --git a/sdk/cwl/tests/test_container.py b/sdk/cwl/tests/test_container.py
index e060037..7dd14a0 100644
--- a/sdk/cwl/tests/test_container.py
+++ b/sdk/cwl/tests/test_container.py
@@ -6,6 +6,8 @@ import os
import functools
import cwltool.process
+from schema_salad.ref_resolver import Loader
+
if not os.getenv('ARVADOS_DEBUG'):
logging.getLogger('arvados.cwl-runner').setLevel(logging.WARN)
logging.getLogger('arvados.arv-run').setLevel(logging.WARN)
@@ -35,7 +37,7 @@ class TestContainer(unittest.TestCase):
}
make_fs_access=functools.partial(arvados_cwl.CollectionFsAccess, api_client=runner.api)
arvtool = arvados_cwl.ArvadosCommandTool(runner, tool, work_api="containers", avsc_names=avsc_names,
- basedir="", make_fs_access=make_fs_access)
+ basedir="", make_fs_access=make_fs_access, loader=Loader({}))
arvtool.formatgraph = None
for j in arvtool.job({}, mock.MagicMock(), basedir="", name="test_run",
make_fs_access=make_fs_access, tmpdir="/tmp"):
@@ -88,7 +90,8 @@ class TestContainer(unittest.TestCase):
}
make_fs_access=functools.partial(arvados_cwl.CollectionFsAccess, api_client=runner.api)
arvtool = arvados_cwl.ArvadosCommandTool(runner, tool, work_api="containers",
- avsc_names=avsc_names, make_fs_access=make_fs_access)
+ avsc_names=avsc_names, make_fs_access=make_fs_access,
+ loader=Loader({}))
arvtool.formatgraph = None
for j in arvtool.job({}, mock.MagicMock(), basedir="", name="test_resource_requirements",
make_fs_access=make_fs_access, tmpdir="/tmp"):
diff --git a/sdk/cwl/tests/test_job.py b/sdk/cwl/tests/test_job.py
index 21b72d1..19ae93a 100644
--- a/sdk/cwl/tests/test_job.py
+++ b/sdk/cwl/tests/test_job.py
@@ -6,6 +6,8 @@ import os
import functools
import cwltool.process
+from schema_salad.ref_resolver import Loader
+
if not os.getenv('ARVADOS_DEBUG'):
logging.getLogger('arvados.cwl-runner').setLevel(logging.WARN)
logging.getLogger('arvados.arv-run').setLevel(logging.WARN)
@@ -28,7 +30,8 @@ class TestJob(unittest.TestCase):
"arguments": [{"valueFrom": "$(runtime.outdir)"}]
}
make_fs_access=functools.partial(arvados_cwl.CollectionFsAccess, api_client=runner.api)
- arvtool = arvados_cwl.ArvadosCommandTool(runner, tool, work_api="jobs", avsc_names=avsc_names, basedir="", make_fs_access=make_fs_access)
+ arvtool = arvados_cwl.ArvadosCommandTool(runner, tool, work_api="jobs", avsc_names=avsc_names,
+ basedir="", make_fs_access=make_fs_access, loader=Loader({}))
arvtool.formatgraph = None
for j in arvtool.job({}, mock.MagicMock(), basedir="", make_fs_access=make_fs_access):
j.run()
@@ -80,7 +83,8 @@ class TestJob(unittest.TestCase):
"baseCommand": "ls"
}
make_fs_access=functools.partial(arvados_cwl.CollectionFsAccess, api_client=runner.api)
- arvtool = arvados_cwl.ArvadosCommandTool(runner, tool, work_api="jobs", avsc_names=avsc_names, make_fs_access=make_fs_access)
+ arvtool = arvados_cwl.ArvadosCommandTool(runner, tool, work_api="jobs", avsc_names=avsc_names,
+ make_fs_access=make_fs_access, loader=Loader({}))
arvtool.formatgraph = None
for j in arvtool.job({}, mock.MagicMock(), basedir="", make_fs_access=make_fs_access):
j.run()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list