HomeClusterLabs Projects

Test: cts-cli: Improve sed for cib_last_written and shadow directory

Description

Test: cts-cli: Improve sed for cib_last_written and shadow directory

Avoid mangling lines like

<cib epoch="4" num_updates="1" admin_epoch="1"/>

and

<change-attr name="cib-last-written" operation="unset"/>

when we add XML formatted output for crm_shadow.

Also, match the shadow directory when it's an XML attribute instead of
only at the beginning of a line.

Note that these sed expressions are basically duplicated. This is for
POSIX compliance (specifically to avoid CI failures on FreeBSD). POSIX
sed doesn't support EREs, which includes '?' as a special character
meaning zero-or-one.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 14 2023, 1:41 AM
Parents
rP79fefbcfc08b: Doc: libcrmcommon: Remove incorrect comment in patchset.c
Branches
Unknown
Tags
Unknown