From 777200b4ac23d65640f9852c2e8872d83a2d333b Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Oct 23 2018 11:07:27 +0000 Subject: Support skipping disabled tests in the fmf filter There is a new CI Metadata attribute proposed for temporarily disabling broken tests. This commit adds support for this. https://pagure.io/fedora-ci/metadata/pull-request/1 --- diff --git a/scripts/str-filter-tests b/scripts/str-filter-tests index 00a1d10..fc84e2e 100755 --- a/scripts/str-filter-tests +++ b/scripts/str-filter-tests @@ -37,4 +37,7 @@ if __name__ == "__main__": fmf.utils.info("No metadata found for '{0}'.".format(path)) continue for node in tree.prune(keys=['test'], filters=[filtr]): + # Skip disabled tests + if node.data.get('disabled', False): + continue print(path + (node.data.get('path') or node.name))