mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
selftests: pmtu.sh: fix result checking
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: 2a9d3716b8
("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>
This commit is contained in:
parent
db456d90a4
commit
63e201916b
1 changed files with 1 additions and 1 deletions
|
@ -2048,7 +2048,7 @@ run_test() {
|
|||
case $ret in
|
||||
0)
|
||||
all_skipped=false
|
||||
[ $exitcode=$ksft_skip ] && exitcode=0
|
||||
[ $exitcode -eq $ksft_skip ] && exitcode=0
|
||||
;;
|
||||
$ksft_skip)
|
||||
[ $all_skipped = true ] && exitcode=$ksft_skip
|
||||
|
|
Loading…
Add table
Reference in a new issue