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@xxxxxx> --- tests/shell/testcases/owner/0002-persist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/shell/testcases/owner/0002-persist b/tests/shell/testcases/owner/0002-persist index 98a8eb1368bc1..700f00ec5e5f1 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) || { -- 2.48.1