]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:36:59 +0000 (04:36 -0800)
commit8b6ca34e897342e201ecfa15ecd47ad1c8b16bc1
tree624951b14dfce2104416ef8d2dd3237a3c3febbd
parentb10e1adbc7215956eacbdc13faa2102c977b3183
tc-testing: fix eBPF tests failure on linux fresh clones

commit 7145fcfffef1fad4266aaf5ca96727696916edb7 upstream.

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: 4c2d39bd40c1 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/tc-testing/plugin-lib/buildebpfPlugin.py