Closed pranavprakash20 closed 3 years ago
functional/bvt/test_sosreport_interoperability.py::ValidateSosreportBehavior_cplex_distributed-dispersed_glusterfs::test_sosreport_behavior_for_glusterfs PASSED [ 33%] functional/bvt/test_sosreport_interoperability.py::ValidateSosreportBehavior_cplex_arbiter_glusterfs::test_sosreport_behavior_for_glusterfs PASSED [ 66%] functional/bvt/test_sosreport_interoperability.py::ValidateSosreportBehavior_cplex_distributed-replicated_glusterfs::test_sosreport_behavior_for_glusterfs PASSED [100%]
Fixing the comaprison logic for dirs before SOS report generation and after
Problem: The current approach is using
==
operator for comparing two lists. The issue happens when the lists are in different order, for e.g:The comparison returns False, whereas the content of the lists are same.
Solution:
Use set() instead to ensure that the contents are similar, E.g.
Signed-off-by: Pranav prprakas@redhat.com