]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: drop redundant 'function' keyword
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 12 Jul 2023 13:31:14 +0000 (15:31 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 12 Jul 2023 14:01:05 +0000 (16:01 +0200)
test/units/testsuite-02.sh
test/units/testsuite-16.sh

index 4c4479287ffb44592afdd4e07706243452e6fc19..97700e4439a0e49f403a0f59eb420721432a951e 100755 (executable)
@@ -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
index 9b8a7bd6fa26a724b3c245033fb8c4833c688d3c..ed018223192af0f7490a7f1e24257593c0ce19db 100755 (executable)
@@ -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"