We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 928f897 + b86f644 commit e20ad00Copy full SHA for e20ad00
cwltool/cwltest.py
@@ -25,9 +25,13 @@ class CompareFail(Exception):
25
26
27
def compare(a, b): # type: (Any, Any) -> bool
28
+ if a == "Any" or b == "Any":
29
+ return True
30
try:
31
if isinstance(a, dict):
32
if a.get("class") == "File":
33
+ if a["path"] == "Any" or b["path"] == "Any":
34
35
if not (b["path"].endswith("/" + a["path"]) or ("/" not in b["path"] and a["path"] == b["path"])):
36
raise CompareFail(u"%s does not end with %s" %(b["path"], a["path"]))
37
# ignore empty collections
0 commit comments