selftests: forwarding: Allow importing dependent libraries
authorPetr Machata <petrm@mellanox.com>
Thu, 5 Jul 2018 19:10:59 +0000 (21:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 11:29:34 +0000 (20:29 +0900)
commite88bc0f25b99294b039b965e92a68213d594ba5b
treee4696521b953c9cd1af1974166c3216023ec2c06
parenta2f1483b91470804f37ce8fc69b48e8e5635c36f
selftests: forwarding: Allow importing dependent libraries

The next patch introduces a new mlxsw-specific test that uses
mirror_gre_lib.sh and mirror_gre_topo_lib.sh.

However when sourcing their own deps, these libraries assume that the
test that's running is in the same directory. That's not the case for
driver-specific tests.

So change the libraries to source their deps through $relative_path.
That variable is set up by lib.sh, which should be imported by the test
in question in any case.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_lib.sh
tools/testing/selftests/net/forwarding/mirror_gre_topo_lib.sh