From a455e5d2af9e99252d182d02337fec865ec88be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 16 Dec 2025 02:24:48 +0100 Subject: [PATCH] tests: accept both ERR_VM_REFRESH and ERR_VM_UPDATE on no network test DNF5 gives less control over when metadata is refreshed. Accept both error codes in the test. More details at https://github.com/QubesOS/qubes-core-admin-linux/pull/191#issuecomment-3658281280 --- qubes/tests/integ/vm_update.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/qubes/tests/integ/vm_update.py b/qubes/tests/integ/vm_update.py index 924dff6ca..d5a5ce688 100644 --- a/qubes/tests/integ/vm_update.py +++ b/qubes/tests/integ/vm_update.py @@ -828,13 +828,7 @@ def test_121_updates_available_notification_qubes_vm_update_cli(self): ) def test_130_no_network_qubes_vm_update(self): - expected_ret_codes = (23,) - if self.template.count("archlinux"): - # updater on Arch doesn't have separate metadata refresh step - expected_ret_codes = ( - 23, - 24, - ) + expected_ret_codes = (23, 24) self.update_via_proxy_qubes_vm_update_impl( method="qubes-vm-update", options=(), @@ -844,13 +838,7 @@ def test_130_no_network_qubes_vm_update(self): ) def test_131_no_network_qubes_vm_update_cli(self): - expected_ret_codes = (23,) - if self.template.count("archlinux"): - # updater on Arch doesn't have separate metadata refresh step - expected_ret_codes = ( - 23, - 24, - ) + expected_ret_codes = (23, 24) self.update_via_proxy_qubes_vm_update_impl( method="qubes-vm-update", options=("--no-progress",),