Project

General

Profile

Actions

action #50432

closed

action #45008: [functional][u] Further improvements on splitting backend code

[sle][functional][u] move specific architectures Utils::Architectures

Added by zluo about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
SUSE QA - Milestone 24
Start date:
2019-04-16
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

create Utils::Architectures
move specific architectures to it and let opensusebasetest inheriting from it, to avoid excess of imports

Suggestions:
check like following:

# defined in lib/version_utils.pm                                                                                                                                                                                               
# sub is_s390x {                                                                                                                                                                                                                
#     return check_var('ARCH', 's390x');                                                                                                                                                                                        
# }                                                                                                                                                                                                                             
# sub is_x86_64 {                                                                                                                                                                                                               
#     return check_var('ARCH', 'x86_64');                                                                                                                                                                                       
# } 
  • Grep for check_var('ARCH' (might use single or double quotes) and move these to an architecture specific utils package

Acceptance criteria

create Utils::Architectures and move specfici architectures to it.
all related tests work as before.

Actions

Also available in: Atom PDF