selftests: bpftool: skip build tests if not in tree
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | selftests: bpftool: set EXIT trap after usage functiontools/ | +13 | 0 replies | |
| 2/2 | selftests: bpftool: skip the build test if not in treetools/ | +4 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jakub Kicinski |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/2] selftests: bpftool: skip build tests if not in tree
The build test script for bpftool attempts to detect the toplevel path of the kernel repository and attempts to build bpftool from there.
If it fails to find the correct directory, or if bpftool files are missing for another reason (e.g. kselftests built on a first machine and copied onto another, without bpftool sources), then it is preferable to skip the tests entirely rather than dumping useless error messages.
The first patch moves the EXIT trap in the script lower down in the code, to avoid tampering with return value on early exits at the beginning of the script; then the second patch makes sure that we skip the build tests if bpftool's Makefile is not found at its expected location.
Jakub Kicinski (1):
selftests: bpftool: skip the build test if not in tree
Quentin Monnet (1):
selftests: bpftool: set EXIT trap after usage function
.../selftests/bpf/test_bpftool_build.sh | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-)
Signature · 1 line
2.17.1