selftests: bpf: Don't try to read files without read permission
authorJiri Pirko <jiri@mellanox.com>
Tue, 15 Oct 2019 10:00:56 +0000 (12:00 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 Oct 2019 23:27:25 +0000 (16:27 -0700)
commit5bc60de50dfea235634fdf38cbc992fb968d113b
tree58efff58d729d9be645a768dd9ae01164bfd756f
parent95fbda1e37384b9c270218b52718c83ddf4bb34e
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>
tools/testing/selftests/bpf/test_offload.py