diff options
| author | Hangbin Liu <[email protected]> | 2025-07-09 09:12:44 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-11 01:11:52 +0000 |
| commit | 47c84997c686b4d43b225521b732492552b84758 (patch) | |
| tree | 11a8712c51de999e300a1b53cf29457fe2b6564f /tools/perf/scripts/python/check-perf-trace.py | |
| parent | Merge branch 'gre-fix-default-ipv6-multicast-route-creation' (diff) | |
| download | kernel-47c84997c686b4d43b225521b732492552b84758.tar.gz kernel-47c84997c686b4d43b225521b732492552b84758.zip | |
selftests: net: lib: fix shift count out of range
I got the following warning when writing other tests:
+ handle_test_result_pass 'bond 802.3ad' '(lacp_active off)'
+ local 'test_name=bond 802.3ad'
+ shift
+ local 'opt_str=(lacp_active off)'
+ shift
+ log_test_result 'bond 802.3ad' '(lacp_active off)' ' OK '
+ local 'test_name=bond 802.3ad'
+ shift
+ local 'opt_str=(lacp_active off)'
+ shift
+ local 'result= OK '
+ shift
+ local retmsg=
+ shift
/net/tools/testing/selftests/net/forwarding/../lib.sh: line 315: shift: shift count out of range
This happens because an extra shift is executed even after all arguments
have been consumed. Remove the last shift in log_test_result() to avoid
this warning.
Fixes: a923af1ceee7 ("selftests: forwarding: Convert log_test() to recognize RET values")
Signed-off-by: Hangbin Liu <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
