summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-31 17:52:15 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-31 18:15:43 +0300
commitb4da7b2eacdfa8e4a88cbe190d79a0cb11f82b92 (patch)
tree8a11c39b28c19b92a24e271fd664c66cc6827e25
parent432c289581082829d646c2e7af904a2d76c7d6dd (diff)
kmstest: Fix CRC directory name string
The CRC directory name string was converted to a Python formatted string literal incorrectly, with the f prefix within the string instead of just before it. Fix it. Fixes: dcbc93a117b0 ("tests: Convert to formatted string literals") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xtests/kmstest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py
index 1843237..177110e 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -171,7 +171,7 @@ class CRCReader(object):
# Hardcode the device minor to 0 as the KMSTest constructor opens the
# default card object.
- self.dir = os.open('f/sys/kernel/debug/dri/0/crtc-{self.pipe}/crc', 0)
+ self.dir = os.open(f'/sys/kernel/debug/dri/0/crtc-{self.pipe}/crc', 0)
self.ctrl = os.open('control', os.O_WRONLY, dir_fd = self.dir)
self.data = -1