]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Remove a redundant exit call
authorPhilip Withnall <pwithnall@gnome.org>
Mon, 22 Jun 2026 19:22:16 +0000 (20:22 +0100)
committerPhilip Withnall <pwithnall@gnome.org>
Tue, 14 Jul 2026 13:57:39 +0000 (14:57 +0100)
`[[ blah ]] || exit 1` is equivalent to `[[ blah ]]`.

Fixes: b0ca987cd96
test/units/TEST-72-SYSUPDATE.sh

index abca295d7d0d2756941e134267aee64952b2c906..8e0c464c7902828acc96d126a336bca82ee2b0df 100755 (executable)
@@ -249,7 +249,7 @@ verify_version_current() {
 verify_object_fields() {
     local updatectl_output="${1:?}"
 
-    [[ "${updatectl_output}" != *"Unrecognized object field"* ]] || exit 1
+    [[ "${updatectl_output}" != *"Unrecognized object field"* ]]
 }
 
 for sector_size in "${SECTOR_SIZES[@]}"; do