diff --git a/test/run/test_stages.py b/test/run/test_stages.py index 476625d6..a962408a 100644 --- a/test/run/test_stages.py +++ b/test/run/test_stages.py @@ -408,6 +408,12 @@ class TestStages(test.TestBase): del p["uuid"] p["node"] = os.path.basename(p["node"]) + # Old versions of sfdisk (e.g. on RHEL-8), do not include + # the 'sectorsize' in the output, so we delete it from the + # expected output if it is not present in the actual output + if "sectorsize" not in table: + del want["partitiontable"]["sectorsize"] + self.assertEqual(have, want) # cache the downloaded data for the files source