Skip to content

add "eval-exit-code" and skip tests based on kernel version

Thomas Haller netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 7 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests/shell: add "tests/shell/helpers/eval-exit-code"tests/shell/helpers/eval-exit-code+116 -00 replies
2/3tests/shell: skip "table_onoff" test on older kernelstests/shell/testcases/transactions/table_onoff+3 -15 replies
3/3tests/shell: skip "vlan_8021ad_tag" test on older kernelstests/shell/testcases/packetpath/vlan_8021ad_tag+7 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH nft v2 0/3] add "eval-exit-code" and skip tests based on kernel version

This is a follow-up and replaces the two patches:

[PATCH nft 1/3] tests/shell: skip "table_onoff" test if kernel patch is missing [PATCH nft 2/3] tests/shell: skip "vlan_8021ad_tag" test instead of failing

Instead, add a helper script "eval-exit-code" which makes it easy(?) to conditionally downgrade a test failure to a SKIP (exit 77) based on the kernel version.

Thomas Haller (3):
tests/shell: add "tests/shell/helpers/eval-exit-code" tests/shell: skip "table_onoff" test on older kernels tests/shell: skip "vlan_8021ad_tag" test on older kernels

 tests/shell/helpers/eval-exit-code            | 116 ++++++++++++++++++
 .../testcases/packetpath/vlan_8021ad_tag      |   8 +-
 .../shell/testcases/transactions/table_onoff  |   4 +-
 3 files changed, 126 insertions(+), 2 deletions(-)
 create mode 100755 tests/shell/helpers/eval-exit-code
Signature · 1 line
2.41.0