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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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


[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux