diff options
author | Phil Sutter <phil@nwl.cc> | 2025-03-23 22:46:18 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2025-03-28 16:47:02 +0100 |
commit | 125aafd175605e1c0912d51314491dec8e807be2 (patch) | |
tree | 68aa0be195b084a135ccef0ac3556b166468fb6a /tests/shell | |
parent | 62250017dd4b03d7d72be3c56d0e12c53141fad4 (diff) |
tests: shell: Fix owner/0002-persist on aarch64
Not sure if arch-specific, but for some reason src/nft wrapper script
would call src/.libs/lt-nft and thus the owner appeared as 'lt-nft'
instead of the expected 'nft'. Cover for that by extracting the expected
program name from /proc.
Fixes: b5205165bd708 ("tests: shell: Extend table persist flag test a bit")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rwxr-xr-x | tests/shell/testcases/owner/0002-persist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shell/testcases/owner/0002-persist b/tests/shell/testcases/owner/0002-persist index 98a8eb13..700f00ec 100755 --- a/tests/shell/testcases/owner/0002-persist +++ b/tests/shell/testcases/owner/0002-persist @@ -47,7 +47,8 @@ cat >&"${COPROC[1]}" <<EOF add table ip t { flags owner, persist; } EOF -EXPECT="table ip t { # progname nft +COMM=$(</proc/${COPROC_PID}/comm) +EXPECT="table ip t { # progname $COMM flags owner,persist }" diff -u <(echo "$EXPECT") <($NFT list ruleset) || { |