[Piglit] [PATCH 1/1] cl: fix adding concurent tests

Jan Vesely jan.vesely at rutgers.edu
Thu Sep 4 07:28:00 PDT 2014


On Wed, 2014-09-03 at 20:20 -0700, Dylan Baker wrote:
> I'd caught this error in a branch as well, but noticed there were no users
> of this function so it didn't seem pressing to fix it.
> 
> If you wanted a little less code:
> group[name] = PiglitTest(args, run_concurrent=True)

yeah, it looks nicer.

> 
> 
> On Wed, Sep 3, 2014 at 4:35 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 
> > On Wed, Sep 3, 2014 at 7:28 PM, Tom Stellard <tom at stellard.net> wrote:
> > > On Wed, Sep 03, 2014 at 07:20:10PM -0400, Jan Vesely wrote:
> > >> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> > >
> > > Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

thanks, can you push it too? I don't have commit access. Or Dylan's
version if it is preferable.

jan

> > >
> > >> ---
> > >>
> > >> seemed wrong. Wonder if we can use concurrent tests.
> > >>
> > >
> > > If you have render-nodes enabled, then you can run the cl tests
> > > concurrently by adding the -c flag when running piglit.
> > >
> > > Render-nodes were enabled by default in the 3.16 kernel, so
> > > I think it may be too early to enable concurrent tests by default.
> >
> > Conversely, you can use -1 to force single-threaded runs... seems like
> > it's not for piglit to worry about that. -c forces all tests to run
> > concurrently even if the test author said that it shouldn't run
> > concurrently with other things. Not sure how common that is in the CL
> > world though.
> >
> > >
> > > -Tom
> > >
> > >>  tests/cl.py | 2 +-
> > >>  1 file changed, 1 insertion(+), 1 deletion(-)
> > >>
> > >> diff --git a/tests/cl.py b/tests/cl.py
> > >> index fd698fc..b59368d 100644
> > >> --- a/tests/cl.py
> > >> +++ b/tests/cl.py
> > >> @@ -21,7 +21,7 @@ def add_plain_test(group, name, args):
> > >>  def add_concurrent_test(group, name, args):
> > >>          test = PiglitTest(args)
> > >>          test.run_concurrent = true;
> > >> -        group[name] = PiglitTest(args)
> > >> +        group[name] = test
> > >>
> > >>  def add_plain_program_tester_test(group, name, path):
> > >>          add_plain_test(group, name, ['cl-program-tester', path])
> > >> --
> > >> 1.9.3
> > >>
> > >> _______________________________________________
> > >> Piglit mailing list
> > >> Piglit at lists.freedesktop.org
> > >> http://lists.freedesktop.org/mailman/listinfo/piglit
> > > _______________________________________________
> > > Piglit mailing list
> > > Piglit at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/piglit
> > _______________________________________________
> > Piglit mailing list
> > Piglit at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/piglit
> >
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140904/0b11f29e/attachment-0001.sig>


More information about the Piglit mailing list