Skip to content

Commit

Permalink
Merge pull request os-autoinst#18152 from tinawang123/sccdereg
Browse files Browse the repository at this point in the history
Change to use serial_terminal for scc_deregistration
  • Loading branch information
rfan1 authored Nov 22, 2023
2 parents 409ac33 + 63c8d11 commit c51c095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ This is needed to prevent access conflicts to the RPM database.
=cut

sub quit_packagekit {
script_run("systemctl mask packagekit; systemctl stop packagekit; while pgrep packagekitd; do sleep 1; done");
script_run("systemctl mask packagekit; systemctl stop packagekit; while pgrep packagekitd; do sleep 1; done", timeout => 60);
}

=head2 wait_for_purge_kernels
Expand Down
3 changes: 2 additions & 1 deletion tests/console/scc_deregistration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ use warnings;
use base "consoletest";
use testapi;
use registration "scc_deregistration";
use serial_terminal 'select_serial_terminal';

sub run {
return unless (get_var('SCC_REGISTER') || get_var('HDD_SCC_REGISTERED'));

select_console 'root-console';
select_serial_terminal;
scc_deregistration;
}

Expand Down

0 comments on commit c51c095

Please sign in to comment.