Skip to content
Commits on Source (2)
cwltool (1.0.20181217162649+dfsg-3) unstable; urgency=medium
* Fix our patches to the tests, run them in parallel
-- Michael R. Crusoe <michael.crusoe@gmail.com> Mon, 24 Dec 2018 11:51:11 -0800
cwltool (1.0.20181217162649+dfsg-2) unstable; urgency=medium
* debian/tests/control: fix typo in name of py.test-3
......
......@@ -218,3 +218,27 @@ Forwarded: https://github.com/common-workflow-language/cwltool/pull/1023
- print(time.time())
\ No newline at end of file
+ print(time.time())
--- cwltool.orig/tests/test_pack.py
+++ cwltool/tests/test_pack.py
@@ -1,10 +1,11 @@
-import json
import os
import tempfile
from functools import partial
from six import StringIO
import pytest
+import json
+from ruamel import yaml
import cwltool.pack
import cwltool.workflow
@@ -25,7 +26,7 @@
document_loader, workflowobj, uri, [], {})
with open(get_data("tests/wf/expect_packed.cwl")) as packed_file:
- expect_packed = json.load(packed_file)
+ expect_packed = yaml.load(packed_file)
packed = cwltool.pack.pack(document_loader, processobj, uri, metadata)
adjustFileObjs(packed, partial(make_relative, os.path.abspath(get_data("tests/wf"))))
......@@ -30,6 +30,6 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
PYBUILD_TEST_ARGS="cd {dir}; export PATH={destdir}/usr/bin:$$PATH ; \
cd {build_dir}; export PYTHONPATH=$$(pwd); python3 -m pytest \
-k 'not test_http_path_mapping and not test_pack and not test_get_subgraph and not TestUdocker' \
-n auto --ignore cwltool/schemas/ --pyarg cwltool" dh_auto_test
-n auto --dist=loadfile --ignore cwltool/schemas/ --pyarg cwltool" dh_auto_test
endif
Tests: run-tests
Depends: @, python3-pytest, python3-mock, python3-pytest-runner, nodejs, singularity-container, docker.io
Depends: @, python3-pytest-xdist, python3-mock, python3-pytest-runner, nodejs, singularity-container, docker.io
Restrictions: allow-stderr
......@@ -5,4 +5,5 @@ if [ "$ADTTMP" = "" ] ; then
ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
fi
cd "$ADTTMP"
py.test-3 --ignore cwltool/schemas --pyarg cwltool
py.test-3 --numprocesses=auto --dist=loadfile --ignore cwltool/schemas \
--pyarg cwltool