selftests: bonding: Change script interpreter
authorBenjamin Poirier <bpoirier@nvidia.com>
Wed, 10 Jan 2024 14:14:35 +0000 (09:14 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 16 Jan 2024 08:06:15 +0000 (09:06 +0100)
commitc2518da8e6b0e248cfff1d4b6682e14020bd4d3f
treec2720abb59b310fee54ff43014d850d781bbc088
parente327b2372bc0f18c30433ac40be07741b59231c5
selftests: bonding: Change script interpreter

The tests changed by this patch, as well as the scripts they source, use
features which are not part of POSIX sh (ex. 'source' and 'local'). As a
result, these tests fail when /bin/sh is dash such as on Debian. Change the
interpreter to bash so that these tests can run successfully.

Fixes: d43eff0b85ae ("selftests: bonding: up/down delay w/ slave link flapping")
Tested-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh
tools/testing/selftests/drivers/net/bonding/mode-2-recovery-updelay.sh