selftests: bpf: Skip write only files in debugfs
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 1 Nov 2019 03:06:58 +0000 (20:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Nov 2019 22:16:01 +0000 (15:16 -0700)
commit8101e069418d136b995b3da81f1af72637082fda
treef04a90e5e3816f690ec868f392e0880dfb4a6796
parentd64479a3e3f9924074ca7b50bd72fa5211dca9c1
selftests: bpf: Skip write only files in debugfs

DebugFS for netdevsim now contains some "action trigger" files
which are write only. Don't try to capture the contents of those.

Note that we can't use os.access() because the script requires
root.

Fixes: 4418f862d675 ("netdevsim: implement support for devlink region and snapshots")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_offload.py