summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMark Janes <markjanes@swizzler.org>2022-05-09 11:56:04 -0700
committerMark Janes <markjanes@swizzler.org>2022-05-09 12:59:46 -0700
commite96b8d592f6b6d4d06fb81ea36fb9d36ebf1d6dd (patch)
treedbd138e4ce3e59b6cf7bf5e17c333b6ec65cdc93 /framework
parentef87faef075361cd17425512728dabf78f636579 (diff)
framework: consistent usage of PIGLIT_CONFIG.read_file param
Since 1fc96325357b225f517cc35d874bbb9b2697281b, read_file is called with both a pathname and an open file handle. It is clear that it is meant to be called with a pathname. Fixes: ef87faef0 ("Make it work with the latest pytest version") Closes: https://gitlab.freedesktop.org/mesa/piglit/-/issues/70 Reviewed-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/671>
Diffstat (limited to 'framework')
-rw-r--r--framework/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/core.py b/framework/core.py
index 2d98df578..22e79e963 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -94,7 +94,7 @@ PIGLIT_CONFIG = PiglitConfig(allow_no_value=True)
def get_config(arg=None):
if arg:
- PIGLIT_CONFIG.read_file(open(arg))
+ PIGLIT_CONFIG.read_file(arg)
else:
# Load the piglit.conf. First try looking in the current directory,
# then trying the XDG_CONFIG_HOME, then $HOME/.config/, finally try the