Skip to content

Commit f252e75

Browse files
author
Peter Amstutz
committed
Add version check to enable runtime.exitCode
1 parent 2744d2e commit f252e75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cwltool/command_line_tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,10 @@ def collect_output_ports(self,
599599
): # type: (...) -> OutputPorts
600600
ret = {} # type: OutputPorts
601601
debug = _logger.isEnabledFor(logging.DEBUG)
602-
builder.resources["exitCode"] = rcode
602+
cwl_version = self.metadata.get(
603+
"http://commonwl.org/cwltool#original_cwlVersion", None)
604+
if cwl_version != "v1.0":
605+
builder.resources["exitCode"] = rcode
603606
try:
604607
fs_access = builder.make_fs_access(outdir)
605608
custom_output = fs_access.join(outdir, "cwl.output.json")

0 commit comments

Comments
 (0)