From 94d8a1357f7de43f7233ae8dad775f6feb46deac Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 17 Jan 2024 09:05:13 +0100 Subject: [PATCH] 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). --- test/run/test_stages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/run/test_stages.py b/test/run/test_stages.py index bc6d8b31..f6156369 100644 --- a/test/run/test_stages.py +++ b/test/run/test_stages.py @@ -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(