Skip to content

Commit

Permalink
Improve file population and cleanup daemon-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
KuxaBeast committed Nov 28, 2024
1 parent e9bd8e1 commit 94bad65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/containers/podman_quadlet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sub run {
assert_script_run("$quadlet -version");
for my $file (@files) {
my ($path, $content) = @$file;
assert_script_run("echo '$_' >> $path") foreach (split /\n/, $content);
assert_script_run("printf '$content' > $path");
}
record_info('Unit', script_output("$quadlet -v -dryrun"));

Expand Down Expand Up @@ -144,7 +144,7 @@ sub run {

sub cleanup {
script_run(sprintf("rm -f %s", join(' ', map { $_->[0] } @files)));
systemctl("daemon-reload");
systemctl("daemon-reload", ignore_failure => 1);
script_run("podman rmi $build_imagetag");
script_run("podman rmi $src_image");
script_run("podman network rm systemd-$unit_name");
Expand Down

0 comments on commit 94bad65

Please sign in to comment.