Message ID | 20170725145629.20974-6-phil@nwl.cc |
---|---|
State | Changes Requested |
Delegated to: | Pablo Neira |
Headers | show |
5/6 and 6/6 also LGTM. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index de19462438d64..9fd0e504d08c0 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -2,17 +2,18 @@ cd $(dirname $0) +nft=../../src/nft +mydiff() { + diff -w -I '^# ' "$@" +} + testdir=$(mktemp -d) if [ ! -d $testdir ]; then echo "Failed to create test directory" >&2 exit 0 fi -trap "rm -rf $testdir" EXIT +trap "rm -rf $testdir; $nft flush ruleset" EXIT -nft=../../src/nft -mydiff() { - diff -w -I '^# ' "$@" -} command_file=$(mktemp -p $testdir) output_file=$(mktemp -p $testdir)
Signed-off-by: Phil Sutter <phil@nwl.cc> --- tests/monitor/run-tests.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)