]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c6468ec0ea9049e0c44c4b44ab549e9f52654a5
treef04a90e5e3816f690ec868f392e0880dfb4a6796
parent7d03892cc56d07a4f638a13da5358971ea2eff68
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: e095a5a4a3b5 ("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