OSDN Git Service

selftests: rtnetlink.sh explicitly requires bash.
authorPaolo Abeni <pabeni@redhat.com>
Thu, 11 Oct 2018 08:54:52 +0000 (10:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:19:46 +0000 (10:19 -0700)
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: 33b01b7b4f19 ("selftests: add rtnetlink test script")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/rtnetlink.sh

index 08c341b..e101af5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # This test is for checking rtnetlink callpaths, and get as much coverage as possible.
 #