]> git.baikalelectronics.ru Git - kernel.git/commit
tc-testing: fix eBPF tests failure on linux fresh clones
authorDavide Caratti <dcaratti@redhat.com>
Mon, 3 Feb 2020 15:29:29 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Feb 2020 08:30:00 +0000 (09:30 +0100)
commit6fb1b688b3fbc0a4c18c07ebdd732ec2cd8b606d
treef765e10d9e8efc18a13cc4ee4146ef7685448b16
parenta85de124854c8428bb55ecb2da9e1daf679fa9a2
tc-testing: fix eBPF tests failure on linux fresh clones

when the following command is done on a fresh clone of the kernel tree,

 [root@f31 tc-testing]# ./tdc.py -c bpf

test cases that need to build the eBPF sample program fail systematically,
because 'buildebpfPlugin' is unable to install the kernel headers (i.e, the
'khdr' target fails). Pass the correct environment to 'make', in place of
ENVIR, to allow running these tests.

Fixes: 85cc7a845e54 ("tc-testing: use a plugin to build eBPF program")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/plugin-lib/buildebpfPlugin.py