test_utils: Await application state after Error

Error state during VFIO enablement is discovered by
'wait_for_application_state' function. So that's the one
that should be re-tried after error recovery.

Fixes: e4e1d18624
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
This commit is contained in:
Martin Kalcok
2025-05-21 13:29:05 +02:00
parent f5e82f949b
commit 5e69dcf8c4

View File

@@ -757,8 +757,9 @@ class BaseCharmTest(unittest.TestCase):
' recover. Possible cause:'
' https://bugs.launchpad.net/juju/+bug/2077936')
zaza.model.resolve_units()
zaza.utilities.machine_os.enable_vfio_unsafe_noiommu_mode(
unit, model_name=self.model_name)
model.wait_for_application_states(
model_name=self.model_name,
states=self.test_config.get('target_deploy_status', {}))
def disable_hugepages_vfio_on_hvs_in_vms(self):
"""Disable hugepages and unsafe VFIO NOIOMMU on virtual hypervisors."""