summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-05-07 23:56:15 -0700
committerJordan Justen <jordan.l.justen@intel.com>2014-05-08 08:12:28 -0700
commitf4ea7b24a02d7ba0b3ba5e05ee8a83b476ef7d1e (patch)
treefb3e2e0fee0178e77817651f3371ec582a1fb6aa
parentc604bee4b76f1a299a2a34122a7957d86672a1cd (diff)
wrappers: Fix argument issue with new wrapper scripts
The new argument parsing wants the script name parameter sys.argv[0] stripped off. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78421 Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
-rwxr-xr-xpiglit-resume.py2
-rwxr-xr-xpiglit-run.py2
-rwxr-xr-xpiglit-summary-html.py2
-rwxr-xr-xpiglit-summary-junit.py2
-rwxr-xr-xpiglit-summary.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/piglit-resume.py b/piglit-resume.py
index 68c546ddf..195a5dbed 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 fd7cd72b3..7c2d71aef 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 92a350d0d..078c7cbe6 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 31c66d365..5aa1969b8 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 b49799621..c5a3923f0 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:])