[Piglit] [PATCH] quick_shader: Do not exclude tests in sanity profile.
Dylan Baker
dylan at pnwbakers.com
Fri Oct 5 18:11:19 UTC 2018
Does this change the set of tests in the profile? I think it will since we'll
end up calling self.random.random() a different number of times.
Quoting Rafael Antognolli (2018-10-03 10:51:28)
> We randomly exclude 80% of the 'arb_vertex_attrib_64bit/execution/vs_in'
> tests, but we want to keep at least the ones present in the sanity
> profile. This makes the 'quick' and 'gpu' profiles a superset of the
> 'sanity' profile.
> ---
> tests/quick_shader.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/quick_shader.py b/tests/quick_shader.py
> index f1bda6545..dd8853cde 100644
> --- a/tests/quick_shader.py
> +++ b/tests/quick_shader.py
> @@ -26,6 +26,7 @@ import random
>
> from framework import grouptools
> from .shader import profile as _profile
> +from .sanity import profile as _sanity
>
> __all__ = ['profile']
>
> @@ -42,6 +43,8 @@ class FilterVsIn(object):
>
> def __call__(self, name, _):
> if 'vs_in' in grouptools.split(name):
> + if name in _sanity.test_list:
> + return True
> # 20%
> return self.random.random() <= .2
> return True
> --
> 2.17.1
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20181005/ed6c6d7a/attachment.sig>
More information about the Piglit
mailing list