Skip to content

Commit 898676d

Browse files
author
Peter Amstutz
committed
Copy location to path for cwltest comparison to support running draft-2/draft-3
tests against v1.0 runners.
1 parent d007cf6 commit 898676d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwltool/cwltest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def compare(a, b): # type: (Any, Any) -> bool
3232
if a.get("class") == "File":
3333
if "path" in a:
3434
comp = "path"
35+
if "path" not in b:
36+
b["path"] = b["location"]
3537
else:
3638
comp = "location"
3739
if a[comp] == "Any" or b[comp] == "Any":

0 commit comments

Comments
 (0)