From: Zbigniew Jędrzejewski-Szmek Date: Tue, 4 Apr 2023 08:58:34 +0000 (+0200) Subject: testsuite-04: remove redirection, drop whitespace after redirection op X-Git-Tag: v254-rc1~645^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f65c2f521491d01eddaa5aa5be417ea03bca4875;p=thirdparty%2Fsystemd.git testsuite-04: remove redirection, drop whitespace after redirection op --- diff --git a/test/units/testsuite-04.sh b/test/units/testsuite-04.sh index 35d35c0e850..e3268b389e6 100755 --- a/test/units/testsuite-04.sh +++ b/test/units/testsuite-04.sh @@ -279,9 +279,9 @@ test "$SEQNUM2" -gt "$SEQNUM1" JTMP="/var/tmp/jtmp-$RANDOM" mkdir "$JTMP" -( cd /test-journals/1 && for f in *.zst ; do unzstd < "$f" > "$JTMP/${f%.zst}" ; done ) +( cd /test-journals/1 && for f in *.zst; do unzstd "$f" -o "$JTMP/${f%.zst}"; done ) -journalctl --directory="$JTMP" --list-boots --output=json > /tmp/lb1 +journalctl --directory="$JTMP" --list-boots --output=json >/tmp/lb1 diff -u /tmp/lb1 - <<'EOF' [{"index":-3,"boot_id":"5ea5fc4f82a14186b5332a788ef9435e","first_entry":1666569600994371,"last_entry":1666584266223608},{"index":-2,"boot_id":"bea6864f21ad4c9594c04a99d89948b0","first_entry":1666584266731785,"last_entry":1666584347230411},{"index":-1,"boot_id":"4c708e1fd0744336be16f3931aa861fb","first_entry":1666584348378271,"last_entry":1666584354649355},{"index":0,"boot_id":"35e8501129134edd9df5267c49f744a4","first_entry":1666584356661527,"last_entry":1666584438086856}]