]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu: Simplify cleanup and namespace names
authorDavid Ahern <dsahern@gmail.com>
Wed, 22 May 2019 19:11:06 +0000 (12:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:50:24 +0000 (17:50 -0700)
commit2a8885eb3fd7dd4d418467c69f9e13078e6b0cd6
tree4289c9489525d9ac4f7eb0ddc85b85163490af74
parentf4201ecd7490f9f503dfb1cb39083d0f5fc7baaa
selftests: pmtu: Simplify cleanup and namespace names

The point of the pause-on-fail argument is to leave the setup as is after
a test fails to allow a user to debug why it failed. Move the cleanup
after posting the result to the user to make it so.

Random names for the namespaces are not user friendly when trying to
debug a failure. Make them simpler and more direct for the tests. Run
cleanup at the beginning to ensure they are cleaned up if they already
exist.

Remove cleanup_done. There is no harm in doing cleanup twice; just
ignore any errors related to not existing - which is already done.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh