diff options
| author | Hangbin Liu <[email protected]> | 2023-12-19 06:57:37 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-12-21 08:32:13 +0000 |
| commit | b8056f2ce07f27c43b9488dd1bc8bfbb60d0779d (patch) | |
| tree | 63de45359ee06b2678a2c0345af3cc3a88e19c64 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | net/ipv6: Revert remove expired routes with a separated list of routes (diff) | |
| download | kernel-b8056f2ce07f27c43b9488dd1bc8bfbb60d0779d.tar.gz kernel-b8056f2ce07f27c43b9488dd1bc8bfbb60d0779d.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
