diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2023-12-19 09:57:37 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-12-21 11:32:13 +0300 |
commit | b8056f2ce07f27c43b9488dd1bc8bfbb60d0779d (patch) | |
tree | 63de45359ee06b2678a2c0345af3cc3a88e19c64 /net | |
parent | dade3f6a1e4e35a5ae916d5e78b3229ec34c78ec (diff) | |
download | linux-b8056f2ce07f27c43b9488dd1bc8bfbb60d0779d.tar.xz |
kselftest: rtnetlink.sh: use grep_fail when expecting the cmd fail
run_cmd_grep_fail should be used when expecting the cmd fail, or the ret
will be set to 1, and the total test return 1 when exiting. This would cause
the result report to fail if run via run_kselftest.sh.
Before fix:
# ./rtnetlink.sh -t kci_test_addrlft
PASS: preferred_lft addresses have expired
# echo $?
1
After fix:
# ./rtnetlink.sh -t kci_test_addrlft
PASS: preferred_lft addresses have expired
# echo $?
0
Fixes: 9c2a19f71515 ("kselftest: rtnetlink.sh: add verbose flag")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231219065737.1725120-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions