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

Configure Feed

Select the types of activity you want to include in your feed.

selftests: bpf: Don't try to read files without read permission

Recently couple of files that are write only were added to netdevsim
debugfs. Don't read these files and avoid error.

Reported-by: kernel test robot <rong.a.chen@intel.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>

authored by

Jiri Pirko and committed by
Alexei Starovoitov
5bc60de5 95fbda1e

+1 -1
+1 -1
tools/testing/selftests/bpf/test_offload.py
··· 312 312 if f == "ports": 313 313 continue 314 314 p = os.path.join(path, f) 315 - if os.path.isfile(p): 315 + if os.path.isfile(p) and os.access(p, os.R_OK): 316 316 _, out = cmd('cat %s/%s' % (path, f)) 317 317 dfs[f] = out.strip() 318 318 elif os.path.isdir(p):