diff options
author | Thomas Haller <thaller@redhat.com> | 2023-10-16 15:30:10 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-10-16 22:34:46 +0200 |
commit | bfb22bbf0f03a3f3ce0ab71d4a2dce7516bc23a0 (patch) | |
tree | 420374c1b0d267139a9f10669bdc4ca5b5414583 /tests/shell/testcases/sets | |
parent | 5fcbe57949d67e15e8f88fffe906a25587cc84b4 (diff) |
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 <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/sets')
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/shell/testcases/sets/0043concatenated_ranges_0 b/tests/shell/testcases/sets/0043concatenated_ranges_0 index 4165b2f5..83d74350 100755 --- a/tests/shell/testcases/sets/0043concatenated_ranges_0 +++ b/tests/shell/testcases/sets/0043concatenated_ranges_0 @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # NFT_TEST_SKIP(NFT_TEST_SKIP_slow) # diff --git a/tests/shell/testcases/sets/0043concatenated_ranges_1 b/tests/shell/testcases/sets/0043concatenated_ranges_1 index bab189c5..1be28893 100755 --- a/tests/shell/testcases/sets/0043concatenated_ranges_1 +++ b/tests/shell/testcases/sets/0043concatenated_ranges_1 @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # 0043concatenated_ranges_1 - Insert and list subnets of different sizes 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) # diff --git a/tests/shell/testcases/sets/0044interval_overlap_1 b/tests/shell/testcases/sets/0044interval_overlap_1 index 905e6d5a..cdd0c844 100755 --- a/tests/shell/testcases/sets/0044interval_overlap_1 +++ b/tests/shell/testcases/sets/0044interval_overlap_1 @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # NFT_TEST_SKIP(NFT_TEST_SKIP_slow) # diff --git a/tests/shell/testcases/sets/0072destroy_0 b/tests/shell/testcases/sets/0072destroy_0 index 6399dd0f..9886a9b0 100755 --- a/tests/shell/testcases/sets/0072destroy_0 +++ b/tests/shell/testcases/sets/0072destroy_0 @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy) |