]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: add option to shuffle execution order of tests
authorThomas Haller <thaller@redhat.com>
Wed, 13 Sep 2023 08:20:25 +0000 (10:20 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 15 Sep 2023 13:52:06 +0000 (15:52 +0200)
commite4f4cd8b4f7fea54e0d9c2aabb52b972a9b5ab5d
tree1531bec4f37fd8ba8d6a7b422c2e48a311482a5d
parentd40fb2197b6335432c59cb6819098fa4d7981385
tests/shell: add option to shuffle execution order of tests

The user can set NFT_TEST_SHUFFLE_TESTS=y|n to have the tests shuffled
randomly. The purpose of shuffling is to find tests that depend on each
other, or would break when run in unexpected order.

If unspecified, by default tests are shuffled if no tests are selected
on the command line.

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