]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: monitor: Test JSON echo mode as well
authorPhil Sutter <phil@nwl.cc>
Wed, 3 Sep 2025 13:30:31 +0000 (15:30 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 4 Sep 2025 15:07:18 +0000 (17:07 +0200)
commit4a179d991b025a2a55762a6fe1e6c1a58fb5a677
tree628781bda64bc8156c442314c2504b47559b1591
parent419338d96bdb19c10e241387c54f416c551a47c3
tests: monitor: Test JSON echo mode as well

Reuse the expected JSON monitor output for --echo testing as it is
supposed to be "identical" - apart from formatting differences. To match
lines of commands (monitor output) against a single line of JSON object
(echo output), join the former's lines and drop the surrounding object
in the latter since this seems to be the simplest way.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/monitor/run-tests.sh