mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 21:26:29 +00:00
parent
36694c9ef0
commit
ee49935b7d
@ -155,6 +155,7 @@ RE_MACHINE = re.compile(
|
||||
r"^!?(?:"
|
||||
r"|intel-nuc"
|
||||
r"|odroid-c2"
|
||||
r"|odroid-c4"
|
||||
r"|odroid-n2"
|
||||
r"|odroid-xu"
|
||||
r"|qemuarm-64"
|
||||
|
@ -7,6 +7,7 @@
|
||||
"raspberrypi4-64": ["aarch64", "armv7", "armhf"],
|
||||
"tinker": ["armv7", "armhf"],
|
||||
"odroid-c2": ["aarch64", "armv7", "armhf"],
|
||||
"odroid-c4": ["aarch64", "armv7", "armhf"],
|
||||
"odroid-n2": ["aarch64", "armv7", "armhf"],
|
||||
"odroid-xu": ["armv7", "armhf"],
|
||||
"qemux86": ["i386"],
|
||||
|
@ -123,6 +123,16 @@ async def test_odroid_c2_arch(coresys, sys_machine, sys_supervisor):
|
||||
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
||||
|
||||
|
||||
async def test_odroid_c4_arch(coresys, sys_machine, sys_supervisor):
|
||||
"""Test arch for odroid-c4."""
|
||||
sys_machine.return_value = "odroid-c4"
|
||||
sys_supervisor.arch = "aarch64"
|
||||
await coresys.arch.load()
|
||||
|
||||
assert coresys.arch.default == "aarch64"
|
||||
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
||||
|
||||
|
||||
async def test_odroid_n2_arch(coresys, sys_machine, sys_supervisor):
|
||||
"""Test arch for odroid-n2."""
|
||||
sys_machine.return_value = "odroid-n2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user