Skip to content

Commit d8a86b0

Browse files
author
Anton Khodak
authored
Merge branch 'master' into deprecate_drafts
2 parents 6a1a167 + 0866dad commit d8a86b0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cwltool/builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def generate_arg(self, binding): # type: (Dict[Text,Any]) -> List[Text]
230230
return [prefix] if prefix else []
231231
elif value is True and prefix:
232232
return [prefix]
233-
elif value is False or value is None:
233+
elif value is False or value is None or (value is True and not prefix):
234234
return []
235235
else:
236236
l = [value]
@@ -251,7 +251,8 @@ def do_eval(self, ex, context=None, pull_image=True, recursive=False):
251251
return {k: self.do_eval(v, context, pull_image, recursive) for k, v in iteritems(ex)}
252252
if isinstance(ex, list):
253253
return [self.do_eval(v, context, pull_image, recursive) for v in ex]
254-
254+
if context is None and type(ex) is str and "self" in ex:
255+
return None
255256
return expression.do_eval(ex, self.job, self.requirements,
256257
self.outdir, self.tmpdir,
257258
self.resources,

jenkins.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ do
3434
# use pip2.7 and pip3 in separate loop runs
3535
pip${PYTHON_VERSION} install -U setuptools wheel pip
3636
pip${PYTHON_VERSION} install .
37-
pip${PYTHON_VERSION} install "cwltest>=1.0.20160825151655"
37+
pip${PYTHON_VERSION} install "cwltest>=1.0.20180130081614"
3838
pushd common-workflow-language
3939
# shellcheck disable=SC2154
4040
if [[ "$version" = *dev* ]]
4141
then
4242
EXTRA="EXTRA=--enable-dev"
4343
fi
44-
./run_test.sh --junit-xml=result${PYTHON_VERSION}.xml RUNNER=cwltool -j4 DRAFT=${version}
44+
./run_test.sh --junit-xml=result${PYTHON_VERSION}.xml RUNNER=cwltool \
45+
-j4 DRAFT=${version} --classname=py${PYTHON_VERSION}
4546
CODE=$(($CODE+$?)) # capture return code of ./run_test.sh
4647
deactivate
4748
popd

0 commit comments

Comments
 (0)