tests: chroot: xfail chroot types that aren't tested (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-15 18:59:55 +02:00 committed by Oliver Smith
parent 30fde53279
commit bc29bc9d63
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -55,3 +55,12 @@ def test_invalid_chroots(pmb_args):
Chroot(5)
assert str(excinfo.value) == "Invalid chroot type: '5'"
@pytest.mark.xfail
def test_untested_chroots():
# IMAGE type is untested, name should be a valid path in this case
tested_chroot_types = [ChrootType.ROOTFS, ChrootType.BUILDROOT, ChrootType.NATIVE,
ChrootType.INSTALLER]
for ct in ChrootType:
if ct not in tested_chroot_types:
raise ValueError(f"ChrootType {ct} is untested!")