Skip to content

Commit

Permalink
Merge pull request os-autoinst#21030 from grisu48/add_bernhard_to_sys…
Browse files Browse the repository at this point in the history
…temd-journal

Add testapi user to systemd-journal if not present
  • Loading branch information
grisu48 authored Jan 23, 2025
2 parents 80758ca + c50ee47 commit 95031bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/containers/rootless_podman.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ sub run {
# add testuser to systemd-journal group to allow non-root
# user to access container logs via journald event driver
# bsc#1207673, bsc#1218023
if (is_leap("<16.0") || is_sle("<16")) {
assert_script_run "usermod -a -G systemd-journal $testapi::username";
}
assert_script_run("usermod -aG systemd-journal $testapi::username") if (is_leap("<16") || is_sle("<16"));

if (get_var('TDUP')) {
my $cont_storage = '/etc/containers/storage.conf';
Expand All @@ -57,8 +55,7 @@ sub run {
switch_cgroup_version($self, 2);
select_serial_terminal;

validate_script_output 'podman info', sub { /cgroupVersion: v2/ };
validate_script_output "id $testapi::username", sub { /systemd-journal/ };
validate_script_output('podman info', sub { /cgroupVersion: v2/ }, fail_message => "podman not operating in cgroup v2");
}

# Check for bsc#1192051
Expand Down

0 comments on commit 95031bf

Please sign in to comment.