From c43238479eb186185ed8d133e1e6c0b2c00ae6ea Mon Sep 17 00:00:00 2001 From: Meina Li Date: Wed, 7 Feb 2024 00:12:59 -0500 Subject: [PATCH] Storage: fix different results after restarting service for logical pool The logical pool will be active from libvirt-9.9.0 after restarting service. But before it the result is also expected. So all these test results need to be keeped. This PR mainly fix it here. Signed-off-by: Meina Li --- libvirt/tests/src/storage/virsh_pool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libvirt/tests/src/storage/virsh_pool.py b/libvirt/tests/src/storage/virsh_pool.py index b8c3fd8d4e..8278aad5ac 100644 --- a/libvirt/tests/src/storage/virsh_pool.py +++ b/libvirt/tests/src/storage/virsh_pool.py @@ -422,8 +422,9 @@ def check_pool_info(pool_info, check_point, value): # pool as active. This is independent of autostart. # So a directory based storage pool is thus pretty much always active, # and so as the SCSI pool. - if pool_type not in ['dir', 'scsi', 'logical']: - if pool_type == 'disk' and libvirt_version.version_compare(8, 1, 0): + if pool_type not in ['dir', 'scsi']: + if (pool_type == 'disk' and libvirt_version.version_compare(8, 1, 0)) or \ + (pool_type == 'logical' and libvirt_version.version_compare(9, 9, 0)): utlv.check_exit_status(result) else: result = virsh.pool_start(pool_name, ignore_status=True)