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:
parent
ff10cdb4db
commit
94d8a1357f
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue