]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: normalize boolean configuration in environment variables
authorThomas Haller <thaller@redhat.com>
Wed, 6 Sep 2023 11:52:08 +0000 (13:52 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 7 Sep 2023 17:35:20 +0000 (19:35 +0200)
commit4649d4fba8f0c6a531f6cb687a152fd7655a37d6
treece6c5929d16914a9696630d06b427ae69957c22b
parent5da2ad76337d8709f4ae842a37fde400fa5ad5ce
tests/shell: normalize boolean configuration in environment variables

Previously, we would honor "y" as opt-in, and all other values meant
false.

- accept alternatives to "y", like "1" or "true".

- normalize the value, to either be "y" or "n".

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/run-tests.sh