HomeClusterLabs Projects

Test: tools: Sort resources in brief output.

Description

Test: tools: Sort resources in brief output.

Due to the use of a hash table, the order of iteration may differ
between systems. This can lead to different output in crm_mon, which in
turns may lead to test case failures. Instead, sort the list of keys in
the resource hash table and then fetch each value always in the same
order.

This doesn't seem to happen in other places due to the use of a list -
we are adding to that list and extracting from it in the same order
every time.

Details

Provenance
clumensAuthored on Jun 16 2020, 11:16 AM
Parents
rPda613c5e4c77: Feature: libpe_status: Add tagged resource support functions.
Branches
Unknown
Tags
Unknown

Event Timeline