[Piglit] [PATCH] Fix 'piglit resume'

Kenneth Graunke kenneth at whitecape.org
Fri Dec 14 20:45:51 UTC 2018


metadata.json contains 'force_glsl' but not 'glsl'.  I guess it must
have gotten renamed at some point.  Fixes the following traceback when
attempting to call 'piglit resume':

Traceback (most recent call last):
  File "/home/kayden/Projects/piglit/piglit", line 178, in <module>
    main()
  File "/home/kayden/Projects/piglit/piglit", line 174, in main
    sys.exit(runner(args))
  File "/home/kayden/Projects/piglit/framework/exceptions.py", line 52, in _inner
    func(*args, **kwargs)
  File "/home/kayden/Projects/piglit/framework/programs/run.py", line 439, in resume
    options.OPTIONS.force_glsl = results.options['glsl']
---
 framework/programs/run.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/programs/run.py b/framework/programs/run.py
index df6ebe7aa..d0a3fcfe9 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -436,7 +436,7 @@ def resume(input_):
     options.OPTIONS.process_isolation = results.options['process_isolation']
     options.OPTIONS.jobs = args.jobs
     options.OPTIONS.no_retry = args.no_retry
-    options.OPTIONS.force_glsl = results.options['glsl']
+    options.OPTIONS.force_glsl = results.options['force_glsl']
 
     core.get_config(args.config_file)
 
-- 
2.19.1



More information about the Piglit mailing list