selftests: rtnetlink.sh explicitly requires bash.

[ Upstream commit 3c718e677c ]

the script rtnetlink.sh requires a bash-only features (sleep with sub-second
precision). This may cause random test failure if the default shell is not
bash.
Address the above explicitly requiring bash as the script interpreter.

Fixes: 33b01b7b4f ("selftests: add rtnetlink test script")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Paolo Abeni 2018-10-11 10:54:52 +02:00 committed by Greg Kroah-Hartman
parent 1e4f8315a5
commit 5309191ec0

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# This test is for checking rtnetlink callpaths, and get as much coverage as possible.
#