]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
testsuite-04: remove unnecessary conditional
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Apr 2023 09:01:33 +0000 (11:01 +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 e3268b389e6c05312b898e3dbb9f5605154c8360..4893141fed959e824ee6cf5a59a97323950d07dc 100755 (executable)
@@ -212,11 +212,7 @@ function is_xattr_supported() {
     END=$(date '+%Y-%m-%d %T.%6N')
     systemctl stop text_xattr
 
-    if journalctl -q -u "text_xattr" -S "$START" -U "$END" --grep "Failed to set 'user.journald_log_filter_patterns' xattr.*not supported$"; then
-        return 1
-    fi
-
-    return 0
+    ! journalctl -q -u "text_xattr" -S "$START" -U "$END" --grep "Failed to set 'user.journald_log_filter_patterns' xattr.*not supported$"
 }
 
 if is_xattr_supported; then