HomeClusterLabs Projects

Feature: python: Allow overriding the environment in cts tests.

Description

Feature: python: Allow overriding the environment in cts tests.

Functions like add_cmd and add_cmd_check_stdout now take an env
parameter that, if not None, contains things that will be added to the
environment before executing the test. The env parameter should be a
dict. It can contain things that already exist in the environment, in
which case they will override previous settings.

Details

Provenance
clumensAuthored on Feb 17 2023, 5:02 PM
Parents
rP160a6afc8294: High: libcrmcommon: Fix handling node=NULL in pcmk__attrd_api_query.
Branches
Unknown
Tags
Unknown