]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: drop unnecessary `|| :` 23834/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 26 Jun 2022 19:00:43 +0000 (21:00 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 26 Jun 2022 20:06:02 +0000 (22:06 +0200)
since we use `set +e` in the cleanup handler.

test/units/testsuite-21.sh

index 7158688362327e298036d129c6c66b113bf53422..d931e631678e2ff872288bb1c5284d4db49b078b 100755 (executable)
@@ -15,7 +15,7 @@ at_exit() {
     # from the queue
     if [[ $SHUTDOWN_AT_EXIT -ne 0 ]] && ! systemctl poweroff; then
         # PID1 is down let's try to save the journal
-        journalctl --sync || : # journal can be down as well so let's ignore exit codes here
+        journalctl --sync      # journal can be down as well so let's ignore exit codes here
         systemctl -ff poweroff # sync() and reboot(RB_POWER_OFF)
     fi
 }