Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
speed up autopkgtesting
· 26ea60b7
Michael R. Crusoe
authored
Dec 24, 2018
26ea60b7
fix the packing test
· 7f42ec5b
Michael R. Crusoe
authored
Dec 24, 2018
7f42ec5b
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
7f42ec5b
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
...
...
debian/patches/add-exec-line
View file @
7f42ec5b
...
...
@@ -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"))))
debian/rules
View file @
7f42ec5b
...
...
@@ -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
debian/tests/control
View file @
7f42ec5b
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
debian/tests/run-tests
View file @
7f42ec5b
...
...
@@ -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