From: Frantisek Sumsal Date: Thu, 9 Nov 2023 12:27:02 +0000 (+0100) Subject: test: drop the workaround for unexpected newlines X-Git-Tag: v255-rc2~46^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F29958%2Fhead;p=thirdparty%2Fsystemd.git test: drop the workaround for unexpected newlines --- 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