[Piglit] [PATCH 2/2] piglit-run.py: use python2

Xavier Chantry chantry.xavier at gmail.com
Sun Oct 24 05:11:05 PDT 2010


piglit-run.py uses python 2 syntax, so use python2 binary.

File "./piglit-run.py", line 60
    print USAGE % {'progName': sys.argv[0]}
              ^
SyntaxError: invalid syntax

Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
---
 piglit-run.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Could piglit users check their system for the existence of a python2 binary or
link and share the results ?  If just a few distrib miss it, we should request
for its addition.

diff --git a/piglit-run.py b/piglit-run.py
index 9f0eca6..9aa703d 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Permission is hereby granted, free of charge, to any person
 # obtaining a copy of this software and associated documentation
-- 
1.7.3.2



More information about the Piglit mailing list