From bfb22bbf0f03a3f3ce0ab71d4a2dce7516bc23a0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 16 Oct 2023 15:30:10 +0200 Subject: tests/shell: use bash instead of /bin/sh for tests All tests under "tests/shell" are shell scripts with shebang /bin/bash or /bin/sh. This may seem expected, since these tests are under "tests/shell" directory, but any executable file would work. Anyway. The vast majority of the tests has "#!/bin/bash" as shebang. A few tests had "#!/bin/sh" or "#!/bin/sh -e". Unify this and always use bash. Since we anyway require bash, this is not a limitation. Also, if we know that this is a bash script (by parsing the shebang), we can let the test wrapper pass "-x" to the script. The next commit will do that, and it is nicer if the shebangs are all uniform. Signed-off-by: Thomas Haller Signed-off-by: Florian Westphal --- tests/shell/testcases/sets/0044interval_overlap_0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shell/testcases/sets/0044interval_overlap_0') diff --git a/tests/shell/testcases/sets/0044interval_overlap_0 b/tests/shell/testcases/sets/0044interval_overlap_0 index 19aa6f5e..71bf3345 100755 --- a/tests/shell/testcases/sets/0044interval_overlap_0 +++ b/tests/shell/testcases/sets/0044interval_overlap_0 @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # NFT_TEST_SKIP(NFT_TEST_SKIP_slow) # -- cgit v1.2.3