Add feature DISABLE_OPENWRT_AUTO_UPGRADE

This commit is contained in:
Albrecht Lohofener
2025-01-20 11:21:21 +01:00
parent 0829f66116
commit 07dc31458a
4 changed files with 112 additions and 87 deletions
+10 -1
View File
@@ -517,4 +517,13 @@ def test_pci_passthrough_fail(docker_services):
assert ('Loading vfio-pci kernel module' in get_logs()) == True
# It has to fail because IOMMU is not available in multipass (run via Github Actions)
assert ('ERROR: Failed to bind PCI device 0000:00:05.0 to vfio-pci.' in get_logs()) == True
assert ('ERROR: Failed to bind PCI device 0000:00:05.0 to vfio-pci.' in get_logs()) == True
@pytest.mark.parametrize("parameter",
[('DISABLE_OPENWRT_AUTO_UPGRADE','true')], indirect=True,
ids=['DISABLE_OPENWRT_AUTO_UPGRADE="true"'])
def test_openwrt_migrate_existing_volume(docker_services):
wait_for_specific_log(docker_services, 'Booting image using QEMU emulator')
assert ('OpenWrt upgrade check is disabled' in get_logs()) == True