Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Davide Caratti and committed by
David S. Miller
7145fcff 2b5b8251

+1 -1
+1 -1
tools/testing/selftests/tc-testing/plugin-lib/buildebpfPlugin.py
··· 54 54 shell=True, 55 55 stdout=subprocess.PIPE, 56 56 stderr=subprocess.PIPE, 57 - env=ENVIR) 57 + env=os.environ.copy()) 58 58 (rawout, serr) = proc.communicate() 59 59 60 60 if proc.returncode != 0 and len(serr) > 0: