diff options
author | Hangbin Liu <[email protected]> | 2023-12-19 14:57:37 +0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-12-21 09:32:13 +0100 |
commit | b8056f2ce07f27c43b9488dd1bc8bfbb60d0779d (patch) | |
tree | 63de45359ee06b2678a2c0345af3cc3a88e19c64 /lib/memory-notifier-error-inject.c | |
parent | dade3f6a1e4e35a5ae916d5e78b3229ec34c78ec (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions