diff --git a/avocado/core/tree.py b/avocado/core/tree.py index c18c579c93d947550ad448acd8197fb9bd3a106b..2179cbe822c69b9d273aaceb0906d928977f6b1e 100644 --- a/avocado/core/tree.py +++ b/avocado/core/tree.py @@ -533,8 +533,12 @@ def apply_filters(tree, filter_only=None, filter_out=None): """ if filter_only is None: filter_only = [] + else: + filter_only = [_.rstrip('/') for _ in filter_only if _] if filter_out is None: filter_out = [] + else: + filter_out = [_.rstrip('/') for _ in filter_out if _] for node in tree.iter_children_preorder(): keep_node = True for path in filter_only: