<div dir="ltr">On Thu, 19 Jul 2018 at 19:47, Dylan Baker <<a href="mailto:dylan@pnwbakers.com">dylan@pnwbakers.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reviewed-by: Dylan Baker <<a href="mailto:dylan@pnwbakers.com" target="_blank">dylan@pnwbakers.com</a>><br></blockquote><div><br></div><div><span class="gmail-m_-2109055249384573246gmail-m_-3796206122752663915gmail-il"><span class="gmail-m_-2109055249384573246gmail-il"><span class="gmail-il">Reviewed</span></span></span>-<span class="gmail-m_-2109055249384573246gmail-m_-3796206122752663915gmail-il"><span class="gmail-m_-2109055249384573246gmail-il"><span class="gmail-il">by</span></span></span>: <span class="gmail-m_-2109055249384573246gmail-m_-3796206122752663915gmail-il"><span class="gmail-m_-2109055249384573246gmail-il">Rhys</span></span> Kidd <<a href="mailto:rhyskidd@gmail.com" target="_blank">rhyskidd@gmail.com</a>></div><div><br></div><div>Eric Engestrom and I had been looking at those regressions, and came to a similar conclusion.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Quoting Andres Gomez (2018-07-19 15:39:05)<br>
> This avoids modifications in the original filters object.<br>
> <br>
> Detected through Travis CI.<br>
> <br>
> Fixed also a couple of typos.<br>
> <br>
> Fixes: 1f0f2ad25 ("framework: Add filters class")<br>
> Cc: Dylan Baker <<a href="mailto:dylanx.c.baker@intel.com" target="_blank">dylanx.c.baker@intel.com</a>><br>
> Cc: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com" target="_blank">michel.daenzer@amd.com</a>><br>
> Signed-off-by: Andres Gomez <<a href="mailto:agomez@igalia.com" target="_blank">agomez@igalia.com</a>><br>
> ---<br>
>  framework/profile.py                        | 5 ++++-<br>
>  unittests/framework/summary/test_feature.py | 2 +-<br>
>  unittests/framework/utils.py                | 2 +-<br>
>  3 files changed, 6 insertions(+), 3 deletions(-)<br>
> <br>
> diff --git a/framework/profile.py b/framework/profile.py<br>
> index a6cac2cf0..8d6fd0706 100644<br>
> --- a/framework/profile.py<br>
> +++ b/framework/profile.py<br>
> @@ -501,11 +501,14 @@ class TestProfile(object):<br>
>          This method creates a copy with references to the original instance<br>
>          using copy.copy. This allows profiles to be "subclassed" by other<br>
>          profiles, without modifying the original.<br>
> +<br>
> +        copy.deepcopy is used for the filters so the original is<br>
> +        actually not modified in this case.<br>
>          """<br>
>          new = copy.copy(self)<br>
>          new.test_list = copy.copy(self.test_list)<br>
>          new.forced_test_list = copy.copy(self.forced_test_list)<br>
> -        new.filters = copy.copy(self.filters)<br>
> +        new.filters = copy.deepcopy(self.filters)<br>
>          return new<br>
>  <br>
>      def itertests(self):<br>
> diff --git a/unittests/framework/summary/test_feature.py b/unittests/framework/summary/test_feature.py<br>
> index fc05941b6..905484991 100644<br>
> --- a/unittests/framework/summary/test_feature.py<br>
> +++ b/unittests/framework/summary/test_feature.py<br>
> @@ -77,7 +77,7 @@ PROFILE.test_list['spec@gl-2.0@d'] = _maketest('fail')<br>
>  <br>
>  <br>
>  class TestFeatResult(object):<br>
> -    """Tests fro the FeatResult class."""<br>
> +    """Tests for the FeatResult class."""<br>
>  <br>
>      @pytest.fixture(scope='session')<br>
>      def feature(self, tmpdir_factory):<br>
> diff --git a/unittests/framework/utils.py b/unittests/framework/utils.py<br>
> index bb3a19146..15117f97d 100644<br>
> --- a/unittests/framework/utils.py<br>
> +++ b/unittests/framework/utils.py<br>
> @@ -32,7 +32,7 @@ from framework.test.base import Test as _Test<br>
>  <br>
>  <br>
>  class Test(_Test):<br>
> -    """A Test dericed class with a stub interpret_result.<br>
> +    """A Test derived class with a stub interpret_result.<br>
>  <br>
>      This class provides a way to test the Test class.<br>
>      """<br>
> -- <br>
> 2.18.0<br>
> <br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">Piglit@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/piglit" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</blockquote></div></div>