From: Frantisek Sumsal Date: Wed, 12 Jul 2023 13:31:14 +0000 (+0200) Subject: test: drop redundant 'function' keyword X-Git-Tag: v254-rc2~33^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=438fcfdf6cd338d365a39a4c4ae05b74deed7b7c;p=thirdparty%2Fsystemd.git test: drop redundant 'function' keyword --- diff --git a/test/units/testsuite-02.sh b/test/units/testsuite-02.sh index 4c4479287ff..97700e4439a 100755 --- a/test/units/testsuite-02.sh +++ b/test/units/testsuite-02.sh @@ -34,7 +34,7 @@ fi # Arguments: # $1: test path # $2: test exit code -function report_result() { +report_result() { if [[ $# -ne 2 ]]; then echo >&2 "check_result: missing arguments" exit 1 diff --git a/test/units/testsuite-16.sh b/test/units/testsuite-16.sh index 9b8a7bd6fa2..ed018223192 100755 --- a/test/units/testsuite-16.sh +++ b/test/units/testsuite-16.sh @@ -7,7 +7,7 @@ rm -f /test.log TESTLOG=/test.log.XXXXXXXX -function wait_for() +wait_for() { local service="${1:-wait_for: missing service argument}" local result="${2:-success}" @@ -23,7 +23,7 @@ function wait_for() fi } -function wait_for_timeout() +wait_for_timeout() { local unit="$1" local time="$2"