[Patchew-devel] [PATCH 2/3] testing: Recalculate pending tests after disabling tests

Paolo Bonzini pbonzini at redhat.com
Wed Oct 31 12:34:09 UTC 2018


On 31/10/2018 02:24, Fam Zheng wrote:
>                  continue
> +            if not t.get("enabled"):
> +                if isinstance(r, MessageResult):
> +                    _instance.recalc_pending_tests(r.message)
> +                else:
> +                    _instance.recalc_pending_tests(r.project)
> +                continue

This can just use r.obj.

However, I think the bug is that on_set_property should also iterate
over all PENDING tests for the messages, as in the attached patch.

Paolo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-disabled.patch
Type: text/x-patch
Size: 1937 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/patchew-devel/attachments/20181031/80505e17/attachment.bin>


More information about the Patchew-devel mailing list