]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: net: use bash to run udpgro_fwd test case
authorAndrea Righi <andrea.righi@canonical.com>
Wed, 16 Jun 2021 14:57:27 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:56:10 +0000 (12:56 -0700)
udpgro_fwd.sh contains many bash specific operators ("[[", "local -r"),
but it's using /bin/sh; in some distro /bin/sh is mapped to /bin/dash,
that doesn't support such operators.

Force the test to use /bin/bash explicitly and prevent false positive
test failures.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/udpgro_fwd.sh

index a8fa6413628282f541e1d9909cb0e42ff3bea180..7f26591f236b97d7af8cc9e5b028acc9397fd3c1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 
 readonly BASE="ns-$(mktemp -u XXXXXX)"