From b4da7b2eacdfa8e4a88cbe190d79a0cb11f82b92 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 31 Jul 2022 17:52:15 +0300 Subject: 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 --- tests/kmstest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3