Skip to content

Commit 2528f6a

Browse files
committed
Improve log collection for consolebase based tests and systemd enabled services\n\nEnabled and restarted services also count\n
1 parent 015b14c commit 2528f6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Utils/Systemd.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sub systemctl {
6060
croak "systemctl(): no command specified" if ($command =~ /^ *$/);
6161
my $expect_false = $args{expect_false} ? '! ' : '';
6262
my @script_params = ("${expect_false}systemctl --no-pager $command", timeout => $args{timeout}, fail_message => $args{fail_message});
63-
if ($command =~ /^(re)?start ([^ ]+)/) {
63+
if ($command =~ /^(start|restart|enable) ([^ ]+)/) {
6464
my $unit_name = $2;
6565
$started_systemd_services{$unit_name} = 1;
6666
}

0 commit comments

Comments
 (0)