From 7b408fc9c1291b212e86db4231021b8a3cd3957b Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Fri, 17 Nov 2023 19:03:44 -0500 Subject: [PATCH] Add descriptive f-strings to misaligned_devices Signed-off-by: Bryan Gurney --- testlib/infra.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testlib/infra.py b/testlib/infra.py index 1015509..1166807 100644 --- a/testlib/infra.py +++ b/testlib/infra.py @@ -194,7 +194,11 @@ def tearDown(self): with open(dev_sysfspath, "r", encoding="utf-8") as dev_sysfs: dev_align = dev_sysfs.read().rstrip() if int(dev_align) != 0: - misaligned_devices.append(dm_devices[dev]) + misaligned_devices.append( + f"Stratis Name: {dm_devices[dev]}, " + f" DM name: {dev}, " + f" Alignment offset: {dev_align}" + ) self.assertEqual(misaligned_devices, []) except FileNotFoundError: