]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: Improve fix in sets/0036add_set_element_expiration_0
authorPhil Sutter <phil@nwl.cc>
Thu, 29 Oct 2020 12:35:55 +0000 (13:35 +0100)
committerPhil Sutter <phil@nwl.cc>
Sat, 31 Oct 2020 13:12:33 +0000 (14:12 +0100)
commita1e3a5d4a4e24db9a3511a32ff72e830b4c06ddd
tree47636d605c0a5851c8d08901c3bd3bea160b4076
parent673b9d3f2630f812bcef95666a1097747844c92b
tests/shell: Improve fix in sets/0036add_set_element_expiration_0

Explicitly eliminate the newgen message from output instead of just the
last line to make sure no other output is dropped by accident. This also
allows the test to pass in unpatched kernels which do not emit the
newgen message despite NLM_F_ECHO if no netlink listeners are present.

Fixes: 46b54fdcf266d ("Revert "monitor: do not print generation ID with --echo"")
Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/shell/testcases/sets/0036add_set_element_expiration_0