test: check that mkfs.fat has the -g option in test_fat

Older versions of RHEL/Centos do not have `mkfs.fat -g` yet so
this test will fail. Detect this and skip the test if mkfs.fat
is too old (see 7af2f1a for the original commit).
This commit is contained in:
Michael Vogt 2024-01-17 09:05:13 +01:00
parent ff10cdb4db
commit 94d8a1357f

View file

@ -573,6 +573,7 @@ class TestStages(test.TestBase):
assert "path home" in subvols[1]
@unittest.skipUnless(test.TestBase.has_filesystem_support("fat"), "FAT needed")
@unittest.skipUnless("-g GEOM" in subprocess.getoutput("mkfs.fat"), "mkfs.fat -g GEOM missing")
def test_fat(self):
def _get_file_fields(image: str) -> List[str]:
r = subprocess.run(