]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix passing arguments via function in test_kmod.sh
authorYauheni Kaliuta <ykaliuta@redhat.com>
Mon, 26 Sep 2022 09:23:20 +0000 (12:23 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 27 Sep 2022 13:57:54 +0000 (15:57 +0200)
commit440a4e61ec48c35800dcbe3e8280ec7685a81d12
tree0c06a0fce9af3ec195adac61339ca3f83ae0915e
parent00a32d60b8ff1ddc28c9f002c07ef30df58ef391
selftests/bpf: Fix passing arguments via function in test_kmod.sh

Since the tests are run in a function $@ there actually contains the
function arguments, not the script ones.

Pass "$@" to the function as well.

Fixes: 4c5d45c6c6a5 ("selftests: bpf: test_kmod.sh: Pass parameters to the module")
Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220926092320.564631-1-ykaliuta@redhat.com
tools/testing/selftests/bpf/test_kmod.sh