]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
testsuite-04: remove redirection, drop whitespace after redirection op
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Apr 2023 08:58:34 +0000 (10:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2023 08:06:59 +0000 (10:06 +0200)
test/units/testsuite-04.sh

index 35d35c0e8503762dda47e8c7cb7de00a2c9ddd22..e3268b389e6c05312b898e3dbb9f5605154c8360 100755 (executable)
@@ -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}]