Skip to content

Commit 9f01059

Browse files
committed
Expect journal as the default log system
1 parent 553b2c2 commit 9f01059

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/console/journalctl.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SUSE's openQA tests
22
#
3-
# Copyright 2018-2020 SUSE LLC
3+
# Copyright 2018-2025 SUSE LLC
44
# SPDX-License-Identifier: FSFAP
55

66
# Package: systemd
@@ -37,7 +37,7 @@ use constant {
3737

3838
# Tumbleweed uses a persistent journal, Leap 15.3+ (except 15.3 AArch64 JeOS) inherits SLE's default
3939
sub has_default_persistent_journal {
40-
return is_tumbleweed || (is_leap('=15.3') && check_var('FLAVOR', 'JeOS-for-AArch64'));
40+
return is_tumbleweed || is_sle('16.0+') || (is_leap('=15.3') && check_var('FLAVOR', 'JeOS-for-AArch64'));
4141
}
4242

4343
# If the daemon is stopped uncleanly, or if the files are found to be corrupted, they are renamed using the ".journal~" suffix
@@ -176,7 +176,7 @@ sub run {
176176
# To enable persistent logging in opensuse, we use systemd-logger.rpm that creates */var/log/journal/* directory
177177
get_current_boot_id \@boots;
178178
if (has_default_persistent_journal) {
179-
if (is_tumbleweed) {
179+
if (is_tumbleweed || is_sle('16.0+')) {
180180
script_output(sprintf("test -d %s && ls --almost-all %s", PERSISTENT_LOG_DIR, PERSISTENT_LOG_DIR));
181181
} else {
182182
assert_script_run 'rpm -q systemd-logger';

0 commit comments

Comments
 (0)