]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: monitor: Label diffs to help users
authorPhil Sutter <phil@nwl.cc>
Wed, 3 Sep 2025 13:01:09 +0000 (15:01 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 4 Sep 2025 15:07:18 +0000 (17:07 +0200)
Clarify what was expected and what was actually received.

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

index 67d3e618cee07bbf267bf2109d8cd864178a4d12..03091d17452121d0ff2a6ec30d6a9fedbaac768a 100755 (executable)
@@ -5,7 +5,7 @@ debug=false
 test_json=false
 
 mydiff() {
-       diff -w -I '^# ' "$@"
+       diff -w -I '^# ' --label "expected" --label "got" "$@"
 }
 
 err() {