]> asedeno.scripts.mit.edu Git - linux.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)
commita92a0a7b8e7c1e3dbc0c8a7fed7b52e7915e8c11
tree4289c9489525d9ac4f7eb0ddc85b85163490af74
parent9b7e94e6e89be284df94554c8b3c08f91c5c04c3
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