diff options
Diffstat (limited to 'test/units/testsuite-15.sh')
-rwxr-xr-x | test/units/testsuite-15.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-15.sh b/test/units/testsuite-15.sh index 0446e71c38..f847adac74 100755 --- a/test/units/testsuite-15.sh +++ b/test/units/testsuite-15.sh @@ -4,7 +4,7 @@ set -eux set -o pipefail _clear_service () { - local SERVICE_NAME="${1:?_clear_service: missing argument}" + local SERVICE_NAME="${1:?}" systemctl stop "$SERVICE_NAME.service" 2>/dev/null || : rm -f /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.d @@ -25,7 +25,7 @@ clear_services () { } create_service () { - local SERVICE_NAME="${1:?create_service: missing argument}" + local SERVICE_NAME="${1:?}" clear_services "$SERVICE_NAME" cat >/etc/systemd/system/"$SERVICE_NAME".service <<EOF |