Enforce function declaration format in bash8
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check. Add a note to HACKING.rst
Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
diff --git a/tests/test_config.sh b/tests/test_config.sh
index 39603c9..5700f8d 100755
--- a/tests/test_config.sh
+++ b/tests/test_config.sh
@@ -12,7 +12,7 @@
# check_result() tests and reports the result values
# check_result "actual" "expected"
-function check_result() {
+function check_result {
local actual=$1
local expected=$2
if [[ "$actual" == "$expected" ]]; then
@@ -26,7 +26,7 @@
type=new
multi = foo2"
-function create_test1c() {
+function create_test1c {
cat >test1c.conf <<EOF
[eee]
# original comment
@@ -34,7 +34,7 @@
EOF
}
-function create_test2a() {
+function create_test2a {
cat >test2a.conf <<EOF
[ddd]
# original comment