Skip to content

Commit c228908

Browse files
authored
Merge branch 'master' into cwlprov-add_output
2 parents 31c7fba + 659c15c commit c228908

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

release-test.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ package=cwltool
99
module=cwltool
1010
slug=${TRAVIS_PULL_REQUEST_SLUG:=common-workflow-language/cwltool}
1111
repo=https://github.com/${slug}.git
12-
run_tests="bin/py.test --ignore ${module}/schemas/ --pyarg -x cwltool -n$(nproc) --dist=loadfile"
12+
parallel=""
13+
if [[ "${OSTYPE}" == linux* ]]
14+
then
15+
parallel=-n$(( $(nproc) / 2 ))
16+
fi
17+
if [[ "${OSTYPE}" == darwin* ]]
18+
then
19+
parallel=-n$(( $(sysctl -n hw.physicalcpu) / 2 ))
20+
fi
21+
22+
run_tests="bin/py.test --ignore ${module}/schemas/ --pyarg -x cwltool ${parallel} --dist=loadfile"
1323
pipver=7.0.2 # minimum required version of pip
1424
setuptoolsver=24.2.0 # required to generate correct metadata for
1525
# python_requires

tests/test_examples.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -376,25 +376,27 @@ def test_typecomparestrict(self):
376376

377377
def test_recordcompare(self):
378378
src = {
379-
'fields': [{
380-
'type': {'items': 'string', 'type': 'array'},
381-
'name': u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/description'
382-
},
383-
{
384-
'type': {'items': 'File', 'type': 'array'},
385-
'name': u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/vrn_file'
379+
'fields': [
380+
{'type': {'items': 'string', 'type': 'array'},
381+
'name': u'file:///home/chapmanb/drive/work/cwl/'
382+
'test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/description'
383+
},
384+
{'type': {'items': 'File', 'type': 'array'},
385+
'name': u'file:///home/chapmanb/drive/work/cwl/'
386+
'test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/vrn_file'
386387
}],
387388
'type': 'record',
388389
'name': u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec'
389390
}
390391
sink = {
391-
'fields': [{
392-
'type': {'items': 'string', 'type': 'array'},
393-
'name': u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/description'
394-
},
395-
{
396-
'type': {'items': 'File', 'type': 'array'},
397-
'name': u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/vrn_file'
392+
'fields': [
393+
{'type': {'items': 'string', 'type': 'array'},
394+
'name': u'file:///home/chapmanb/drive/work/cwl/'
395+
'test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/description'
396+
},
397+
{'type': {'items': 'File', 'type': 'array'},
398+
'name': u'file:///home/chapmanb/drive/work/cwl/'
399+
'test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/vrn_file'
398400
}],
399401
'type': 'record',
400402
'name': u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec'}
@@ -618,7 +620,7 @@ def get_main_output(self, new_args):
618620
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
619621

620622
stdout, stderr = process.communicate()
621-
return process.returncode, stdout.decode(), stderr.decode()
623+
return process.returncode, stdout.decode('utf-8'), stderr.decode('utf-8')
622624

623625

624626
class TestJsConsole(TestCmdLine):

0 commit comments

Comments
 (0)