From 1bc4463351601a6b58c0ca03000fc6da86b0921e Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 9 Nov 2023 13:27:02 +0100 Subject: [PATCH] test: drop the workaround for unexpected newlines --- test/units/testsuite-45.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/testsuite-45.sh b/test/units/testsuite-45.sh index dc50da7a387..b814e4cbd2f 100755 --- a/test/units/testsuite-45.sh +++ b/test/units/testsuite-45.sh @@ -224,7 +224,7 @@ assert_timedated_signal() { for _ in {0..9}; do if journalctl "${args[@]}" --grep .; then - [[ "$(journalctl "${args[@]}" -o cat | tr -d '\n' | jq -r '.payload.data[1].NTP.data')" == "$value" ]]; + [[ "$(journalctl "${args[@]}" -o cat | jq -r '.payload.data[1].NTP.data')" == "$value" ]]; return 0 fi @@ -304,7 +304,7 @@ assert_timesyncd_signal() { for _ in {0..9}; do if journalctl "${args[@]}" --grep .; then - [[ "$(journalctl "${args[@]}" -o cat | tr -d '\n' | jq -r ".payload.data[1].$property.data | join(\" \")")" == "$value" ]]; + [[ "$(journalctl "${args[@]}" -o cat | jq -r ".payload.data[1].$property.data | join(\" \")")" == "$value" ]]; return 0 fi -- 2.47.3