test: drop the workaround for unexpected newlines

This commit is contained in:
Frantisek Sumsal
2023-11-09 13:30:53 +01:00
parent d603e3d58c
commit 1bc4463351
+2 -2
View File
@@ -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