diff options
author | 2020-09-09 20:26:13 +0200 | |
---|---|---|
committer | 2020-09-22 01:55:11 +0200 | |
commit | 5b1a995bfa93667762badbe1d8f0f7ad680bdf29 (patch) | |
tree | 86ac64a722ec51d333e638c357b39110371128a8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests: netfilter: add cpu counter check (diff) | |
download | linux-dev-5b1a995bfa93667762badbe1d8f0f7ad680bdf29.tar.xz linux-dev-5b1a995bfa93667762badbe1d8f0f7ad680bdf29.zip |
selftests: netfilter: fix nft_meta.sh error reporting
When some test directly done with check_one_counter() fails,
counter variable is undefined. This patch calls ip with cname
which avoids errors like:
FAIL: oskuidcounter, want "packets 2", got
Error: syntax error, unexpected newline, expecting string
list counter inet filter
^
Error is now correctly rendered:
FAIL: oskuidcounter, want "packets 2", got
table inet filter {
counter oskuidcounter {
packets 1 bytes 84
}
}
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions