[Piglit] [PATCH] wrappers: Fix argument issue with new wrapper scripts
Jose Fonseca
jfonseca at vmware.com
Thu May 8 02:48:39 PDT 2014
----- Original Message -----
> The new argument parsing wants the script name parameter
> sys.argv[0] stripped off.
>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Dylan Baker <baker.dylan.c at gmail.com>
> Bugzilla:
> https://urldefense.proofpoint.com/v1/url?u=https://bugs.freedesktop.org/show_bug.cgi?id%3D78421&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=HukieV4qzKHfndlPdqFpLVqY0DCuQysjimIxOgriBc4%3D%0A&s=a3622837d70e7d11de3b1dd2206ac1877d73098972ffa6904a2a7b264d002e9d
> ---
> piglit-resume.py | 2 +-
> piglit-run.py | 2 +-
> piglit-summary-html.py | 2 +-
> piglit-summary-junit.py | 2 +-
> piglit-summary.py | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/piglit-resume.py b/piglit-resume.py
> index 68c546d..195a5db 100755
> --- a/piglit-resume.py
> +++ b/piglit-resume.py
> @@ -29,4 +29,4 @@ Deprecated compatability wrapper
> import sys
> from framework.programs.run import resume
>
> -resume(sys.argv)
> +resume(sys.argv[1:])
> diff --git a/piglit-run.py b/piglit-run.py
> index fd7cd72..7c2d71a 100755
> --- a/piglit-run.py
> +++ b/piglit-run.py
> @@ -29,4 +29,4 @@ Deprecated compatability wrapper
> import sys
> from framework.programs.run import run
>
> -run(sys.argv)
> +run(sys.argv[1:])
> diff --git a/piglit-summary-html.py b/piglit-summary-html.py
> index 92a350d..078c7cb 100755
> --- a/piglit-summary-html.py
> +++ b/piglit-summary-html.py
> @@ -25,4 +25,4 @@
> import sys
> from framework.programs.summary import html
>
> -html(sys.argv)
> +html(sys.argv[1:])
> diff --git a/piglit-summary-junit.py b/piglit-summary-junit.py
> index 31c66d3..5aa1969 100755
> --- a/piglit-summary-junit.py
> +++ b/piglit-summary-junit.py
> @@ -25,4 +25,4 @@
> import sys
> from framework.programs.summary import junit
>
> -junit(sys.argv)
> +junit(sys.argv[1:])
> diff --git a/piglit-summary.py b/piglit-summary.py
> index b497996..c5a3923 100755
> --- a/piglit-summary.py
> +++ b/piglit-summary.py
> @@ -25,4 +25,4 @@
> import sys
> from framework.programs.summary import console
>
> -console(sys.argv)
> +console(sys.argv[1:])
> --
> 1.9.2
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/piglit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=HukieV4qzKHfndlPdqFpLVqY0DCuQysjimIxOgriBc4%3D%0A&s=09d9e686aef7e740c40c7f0c046793591d3cd4aa39d57def66dd03f2ba334f90
>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
More information about the Piglit
mailing list