Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check license accepting in extended installation #6022

Conversation

OleksandrOrlov
Copy link
Contributor

An additional check if the license is accepted or not was executed in all the installation tests.

The commit moves the check to 'installer_extended' test suite.

Note: My previous PR #6000 did not contain a solution for bsc#1059317 workaround. So that the PR was reverted and this one is added.

An additional check if the license is accepted or not was executed
in all the installation tests.

The commit moves the check to 'installer_extended' test suite.

[poo#42608](https://progress.opensuse.org/issues/42608)
$self->verify_license_translations;
send_key $cmd{next};
# workaround for bsc#1059317, multiple times clicking accept license
my $count = 5;
while (check_screen('license-not-accepted', 3) && $count >= 1) {
record_soft_failure 'bsc#1059317';
$self->verify_license_has_to_be_accepted;
$self->accept_license(verify_license_has_to_be_accepted => 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you wanted to set 1 here unconditionally and not using hash.

sub verify_license_has_to_be_accepted {
# license+lang
sub accept_license {
my ($self, $verify_license_has_to_be_accepted) = @_;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this variable name is too long. What's about something like extended_check or at least skipping word license, as it's clear from the subroutine name.
Also, could you please document this method using POD or just comment.

@OleksandrOrlov OleksandrOrlov deleted the 42608_explicit_license_acceptance_check branch July 10, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants