]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: pmtu.sh: fix result checking
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 31 Oct 2023 03:47:32 +0000 (11:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:57:23 +0000 (11:57 +0100)
commitd888fcdaa87d2056e6ebe8d60f99e7005a6f28a9
tree38208e91bda9e66991cf22a78d6e3522820c534c
parent5917a439643bd5efb87049c8bb5efa5f4056f43b
selftests: pmtu.sh: fix result checking

[ Upstream commit 63e201916b27260218e528a2f8758be47f99bbf4 ]

In the PMTU test, when all previous tests are skipped and the new test
passes, the exit code is set to 0. However, the current check mistakenly
treats this as an assignment, causing the check to pass every time.

Consequently, regardless of how many tests have failed, if the latest test
passes, the PMTU test will report a pass.

Fixes: 2a9d3716b810 ("selftests: pmtu.sh: improve the test result processing")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/pmtu.sh