mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 09:06:29 +00:00
Add support for RPi4 (#1162)
This commit is contained in:
parent
7ca8d2811b
commit
08c45060bd
@ -15,6 +15,15 @@
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"raspberrypi4": [
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"raspberrypi4-64": [
|
||||
"aarch64",
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"tinker": [
|
||||
"armv7",
|
||||
"armhf"
|
||||
|
@ -83,6 +83,26 @@ async def test_raspberrypi3_64_arch(coresys, sys_machine, sys_supervisor):
|
||||
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
||||
|
||||
|
||||
async def test_raspberrypi4_arch(coresys, sys_machine, sys_supervisor):
|
||||
"""Test arch for raspberrypi4."""
|
||||
sys_machine.return_value = "raspberrypi4"
|
||||
sys_supervisor.arch = "armv7"
|
||||
await coresys.arch.load()
|
||||
|
||||
assert coresys.arch.default == "armv7"
|
||||
assert coresys.arch.supported == ["armv7", "armhf"]
|
||||
|
||||
|
||||
async def test_raspberrypi4_64_arch(coresys, sys_machine, sys_supervisor):
|
||||
"""Test arch for raspberrypi4_64."""
|
||||
sys_machine.return_value = "raspberrypi4-64"
|
||||
sys_supervisor.arch = "aarch64"
|
||||
await coresys.arch.load()
|
||||
|
||||
assert coresys.arch.default == "aarch64"
|
||||
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
||||
|
||||
|
||||
async def test_tinker_arch(coresys, sys_machine, sys_supervisor):
|
||||
"""Test arch for tinker."""
|
||||
sys_machine.return_value = "tinker"
|
||||
|
Loading…
x
Reference in New Issue
Block a user