[Piglit] [PATCH 4/4] piglit-print-commands: Add --format option

Dylan Baker dylan at pnwbakers.com
Tue May 3 23:34:06 UTC 2016


Quoting Brian Paul (2016-05-03 15:50:01)
> On 05/03/2016 03:59 PM, Dylan Baker wrote:
> > This option allows the format of the output string to be modified by
> > passing a command line argument. This allows for specialized formats to
> > be printed for other uses than the original usage that print-commands
> > was designed for.
> 
> Can you give an example of what the --format option would look like?
> 
> I think the help message below ("Format will be called with the {name} 
> will be replaced with the name of the test, and {command} with the test 
> command") is a bit scrambled.
> 
> -Brian
> 
[snip]

Sure, I thought I did, although I did have to do some git reflog magic
because of a bad rebase.

Something like:
./piglit-print-names sanity --format '{name}' > testlist
cat testlist
  spec at gl-1.0@readpixel-sanity
./piglit run quick foo -1o --test-list testlist

And I'll rewrite the help message to be more clear. It's a little hard
to explain what it does without writing 15 lines of help message, which
I'm not too keen on.

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160503/9fe5d711/attachment-0001.sig>


More information about the Piglit mailing list