mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
test: drop redundant 'function' keyword
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user