forked from Mirror/pmbootstrap
tests: chroot: xfail chroot types that aren't tested (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
30fde53279
commit
bc29bc9d63
1 changed files with 9 additions and 0 deletions
|
@ -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!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue