Skip to content

Commit 318030e

Browse files
authored
Merge pull request #122 from common-workflow-language/cwltest-location-to-path
Copy location to path for cwltest comparison to support running draft
2 parents 03cb519 + 898676d commit 318030e

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)