forked from Mirror/pmbootstrap
core: arch: Add ppc64le as a supported architecture (MR 2476)
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
This commit is contained in:
parent
e2354ec26f
commit
4b4ba1e6ec
3 changed files with 3 additions and 1 deletions
|
@ -83,6 +83,7 @@ class Arch(enum.Enum):
|
|||
Arch.x86_64,
|
||||
Arch.x86,
|
||||
Arch.riscv64,
|
||||
Arch.ppc64le,
|
||||
Arch.native(),
|
||||
]
|
||||
)
|
||||
|
|
|
@ -28,6 +28,7 @@ def test_valid_arches():
|
|||
assert Arch.armhf in Arch.supported()
|
||||
assert Arch.armv7 in Arch.supported()
|
||||
assert Arch.riscv64 in Arch.supported()
|
||||
assert Arch.ppc64le in Arch.supported()
|
||||
|
||||
# kernel arch
|
||||
assert Arch.x86.kernel() == "x86"
|
||||
|
|
|
@ -44,7 +44,7 @@ def test_invalid_chroots(pmb_args):
|
|||
Chroot(ChrootType.BUILDROOT, "BAD_ARCH")
|
||||
assert (
|
||||
str(excinfo.value)
|
||||
== "Invalid architecture: 'BAD_ARCH', expected something like: aarch64, armhf, armv7, riscv64, x86, x86_64"
|
||||
== "Invalid architecture: 'BAD_ARCH', expected something like: aarch64, armhf, armv7, ppc64le, riscv64, x86, x86_64"
|
||||
)
|
||||
|
||||
with pytest.raises(ValueError) as excinfo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue