summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-03-22 15:23:30 -0700
committerEric Anholt <eric@anholt.net>2013-03-22 15:36:33 -0700
commit1dacfe517c6d2a5bf957712e4720e53b720a7d82 (patch)
treefec2ca4fd07c47a84fb4187c7a38c8871b84834b /run.py
parent97969b875c112d4bd8dfb76f10eddde462abecd2 (diff)
Switch to just relying on a link to piglit's binaries from the cwd.
Making other people replace my path with their path sucks.
Diffstat (limited to 'run.py')
-rwxr-xr-xrun.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/run.py b/run.py
index b7fa7e6..aa6b13a 100755
--- a/run.py
+++ b/run.py
@@ -18,7 +18,7 @@ Options:
sys.exit(1)
def run_test(filename):
- command = ['/home/anholt/src/piglit/bin/glslparsertest',
+ command = ['./bin/glslparsertest',
filename,
'pass']
@@ -92,6 +92,12 @@ def main():
if len(args) < 1:
usage()
+ try:
+ os.stat("bin/glslparsertest")
+ except:
+ print("./bin must be a symlink to a built piglit bin directory")
+ sys.exit(1)
+
executor = ThreadPoolExecutor(cpu_count())
for t in executor.map(run_test, args):
sys.stdout.write(t)