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)
commit2702c789996d9001cb60ef1dac055aca84d3c51a
tree0c06a0fce9af3ec195adac61339ca3f83ae0915e
parent6a4ab8869d0bfcf83d7c5184561df8235553cf28
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: 272d1f4cfa3c ("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