[lkml]   [2020]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 5.5 166/367] tc-testing: fix eBPF tests failure on linux fresh clones
From: Davide Caratti <>

commit 7145fcfffef1fad4266aaf5ca96727696916edb7 upstream.

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

[root@f31 tc-testing]# ./ -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 <>
Signed-off-by: David S. Miller <>
Signed-off-by: Greg Kroah-Hartman <>

tools/testing/selftests/tc-testing/plugin-lib/ | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/testing/selftests/tc-testing/plugin-lib/
+++ b/tools/testing/selftests/tc-testing/plugin-lib/
@@ -54,7 +54,7 @@ class SubPlugin(TdcPlugin):
- env=ENVIR)
+ env=os.environ.copy())
(rawout, serr) = proc.communicate()

if proc.returncode != 0 and len(serr) > 0:

 \ /
  Last update: 2020-02-10 13:46    [W:0.822 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site