Skip to content

Commit

Permalink
Add descriptive f-strings to misaligned_devices
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Nov 18, 2023
1 parent 1a7d93a commit 7b408fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b408fc

Please sign in to comment.