[Patchew-devel] [PATCH 3/8] rest: add data to testing results

Fam Zheng famz at redhat.com
Fri Mar 30 02:59:59 UTC 2018


On Sat, 03/24 14:37, Paolo Bonzini wrote:
> ---
>  mods/testing.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/mods/testing.py b/mods/testing.py
> index 52407b7..cf22004 100644
> --- a/mods/testing.py
> +++ b/mods/testing.py
> @@ -284,8 +284,11 @@ class TestingModule(PatchewModule):
>              failed = not p["passed"]
>              log_url = self.reverse_testing_log(message, tn, request=request, html=False)
>              passed_str = "failure" if failed else "success"
> +
> +            data = p.copy()
> +            del data['passed']

Why the del here?

Fam

>              results.append(Result(name='testing.' + tn, status=passed_str, log_url=log_url,
> -                                  request=request))
> +                                  request=request, data=data))
>  
>      def prepare_message_hook(self, request, message, detailed):
>          if not message.is_series_head:
> -- 
> 2.16.2
> 
> 
> _______________________________________________
> Patchew-devel mailing list
> Patchew-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/patchew-devel




More information about the Patchew-devel mailing list