[Piglit] [PATCH 1/3] piglit-run: add back -c0

Kenneth Graunke kenneth at whitecape.org
Sat Sep 21 13:28:25 PDT 2013


On 09/16/2013 11:08 AM, Marek Olšák wrote:
> ---
>  piglit-run.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/piglit-run.py b/piglit-run.py
> index e8e11b7..7945b21 100755
> --- a/piglit-run.py
> +++ b/piglit-run.py
> @@ -62,7 +62,7 @@ def main():
>                          action  = "append",
>                          metavar = "<regex>",
>                          help    = "Exclude matching tests (can be used more than once)")
> -    parser.add_argument("--no-concurrency",
> +    parser.add_argument("-c0", "--no-concurrency",
>                          action  = "store_false",
>                          dest    = "concurrency",
>                          help    = "Disable concurrent test runs")
> 

I like having a short option for this.  I wasn't crazy about "-c 0", and
am also not crazy about "-c0".

How about one of:

-1 (run using one thread)
-s (run single-threaded)

Using -1 makes a lot of sense to me.

--Ken


More information about the Piglit mailing list