Skip to content

Commit

Permalink
incorporate Petr's suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: fbalak <[email protected]>
  • Loading branch information
fbalak committed Jan 13, 2025
1 parent d3b195a commit 3e06b90
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/functional/z_cluster/test_must_gather_minimal_crds.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def test_must_gather_minimal_crd_modular(
flags_cmd = "/usr/bin/gather --minimal "
paths_exist = list()
paths_not_exist = list()
for path in const_must_gather.MINIMAL:
paths_exist.append(path)
paths_exist += const_must_gather.MINIMAL

options = [
(ceph, const_must_gather.CEPH_ONLY, "-c "),
Expand All @@ -134,12 +133,10 @@ def test_must_gather_minimal_crd_modular(

for flag, paths, param_value in options:
if flag:
for path in paths:
paths_exist.append(path)
paths_exist += paths
flags_cmd += param_value
else:
for path in paths:
paths_not_exist.append(path)
paths_not_exist += paths
mustgather_obj = MustGather()
mustgather_obj.collect_must_gather(ocs_flags=flags_cmd)
mustgather_obj.get_all_paths()
Expand Down

0 comments on commit 3e06b90

Please sign in to comment.