selftests: devlink: undo changes at the end of resource_test
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 5 Nov 2019 21:28:17 +0000 (13:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 19:11:30 +0000 (11:11 -0800)
commit462ef97526861900f1e66541d23e0c37b8c7d1cc
tree0e201ce01652fd3acf8048f7a8054d812c148cd0
parenta9b97286fec1a87976ac7852ad65f2013faad9f6
selftests: devlink: undo changes at the end of resource_test

The netdevsim object is reused by all the tests, but the resource
tests puts it into a broken state (failed reload in a different
namespace). Make sure it's fixed up at the end of that test
otherwise subsequent tests fail.

Fixes: b74c37fd35a2 ("selftests: netdevsim: add tests for devlink reload with resources")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/netdevsim/devlink.sh