Project

General

Profile

Actions

action #132770

closed

coordination #121864: [epic] Split and enhance test modules in migrations

Improve recently created patch_and_reboot_system.pm

Added by JERiveraMoya 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2023-07-14
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Improve recently created tests/migration/patch_and_reboot_system.pm

Some points:

  • my ($self) = @_; should be the first line to unpack parameters.
  • Extract from sub fully_patch_system the main part which is $ret = zypper_call("$zypp_opt patch --with-interactive -l", exitcode => [0, 4, 102, 103], timeout => 6000); with corresponding loop, comments and error handling in a new module, without including sle 11 sp4 or that invalid bug surrounded that code or not even the logic for hyperv.
  • last select_console seems not make sense, next module should be responsible for that if needed.

Acceptance criteria

AC1: patch_and_reboot_system.pm is easy to read and an user could reproduce easily just reading the module what it does

Additional information

Refactored test suite are currently in this job group with names ending on *_split_patch_sle.

Actions

Also available in: Atom PDF