Skip to content

Commit

Permalink
selftests: mptcp: userspace pm: fix printed values
Browse files Browse the repository at this point in the history
In case of errors, the printed message had the expected and the seen
value inverted.

This patch simply correct the order: first the expected value, then the
one that has been seen.

Fixes: 10d4273 ("selftests: mptcp: userspace: print error details if any")
Cc: stable@vger.kernel.org
Acked-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
matttbe authored and kuba-moo committed Mar 11, 2023
1 parent 0a3f4f1 commit 840742b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/net/mptcp/userspace_pm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ check_expected_one()
fi

stdbuf -o0 -e0 printf "\tExpected value for '%s': '%s', got '%s'.\n" \
"${var}" "${!var}" "${!exp}"
"${var}" "${!exp}" "${!var}"
return 1
}

Expand Down

0 comments on commit 840742b

Please sign in to comment.