diff --git a/tests/functional/odf-cli/test_pvc_stale_volume_cleanup_cli.py b/tests/functional/odf-cli/test_pvc_stale_volume_cleanup_cli.py index c720d8d2e26..410e327be07 100644 --- a/tests/functional/odf-cli/test_pvc_stale_volume_cleanup_cli.py +++ b/tests/functional/odf-cli/test_pvc_stale_volume_cleanup_cli.py @@ -1,4 +1,6 @@ import logging +from subprocess import CompletedProcess + import pytest from ocs_ci.framework.testlib import ( @@ -74,6 +76,9 @@ def test_pvc_stale_volume_cleanup_cli(self, storageclass_factory, pvc_factory): assert len(stale_volumes) == 0 # No stale volumes available def parse_subvolume_ls_output(self, output): + if isinstance(output, CompletedProcess): + output = output.stdout.decode("utf-8") + subvolumes = [] subvolumes_list = output.strip().split("\n")[1:] for item in subvolumes_list: