]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: drop the workaround for unexpected newlines 29958/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 9 Nov 2023 12:27:02 +0000 (13:27 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 9 Nov 2023 12:30:53 +0000 (13:30 +0100)
test/units/testsuite-45.sh

index dc50da7a387c38c34f2baf7cfc92f31b6e7062c6..b814e4cbd2fa2dab04bfc8e744f68c9ce8277f10 100755 (executable)
@@ -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