From 16180675db5c3a521df3865e4dc32b76689b0cfd Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 5 May 2022 22:06:33 +0200 Subject: [PATCH] test: minor coding style fixups Signed-off-by: Joachim Wiberg --- test/start-stop-sysv.sh | 3 ++- test/tenv/lib.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/start-stop-sysv.sh b/test/start-stop-sysv.sh index 43181354..17a33756 100755 --- a/test/start-stop-sysv.sh +++ b/test/start-stop-sysv.sh @@ -7,7 +7,8 @@ TEST_DIR=$(dirname "$0") # shellcheck source=/dev/null . "$TEST_DIR/tenv/lib.sh" -test_teardown() { +test_teardown() +{ say "Test done $(date)" say "Running test teardown." diff --git a/test/tenv/lib.sh b/test/tenv/lib.sh index 3508bc4b..c0d59762 100755 --- a/test/tenv/lib.sh +++ b/test/tenv/lib.sh @@ -34,7 +34,7 @@ assert_num_children() # shellcheck disable=SC2086 assert_new_pid() { - assert "Finit has registered new PID" "$(texec initctl |grep $1 |awk '{print $1}')" -eq "$(texec cat $2)" + assert "Finit has registered new PID" "$(texec initctl |grep $1 | awk '{print $1;}')" -eq "$(texec cat $2)" } # shellcheck disable=SC2086