]> 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)
commit3f0137d2d2d4086488a8d738bd1d66243f304cc5
treef04a90e5e3816f690ec868f392e0880dfb4a6796
parentb784d406b7eafecad7dbfacbcb8b54d78a051190
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: dd4c55bb082b ("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