Skip to content
Snippets Groups Projects
Commit 9efcf9eb authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark-util: fix the handling of filter_fn behing None

Before, not passing a filter_fn means the function will always return False
parent 41e41fd1
No related branches found
No related tags found
No related merge requests found
...@@ -363,8 +363,9 @@ ...@@ -363,8 +363,9 @@
if not match_pattern in output: if not match_pattern in output:
in_revset = False in_revset = False
if filter_fn and filter_fn(test_kwargs, current_version): in_filter = True
in_filter = True if filter_fn is not None:
in_filter = bool(filter_fn(test_kwargs, current_version))
return in_revset and in_filter return in_revset and in_filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment