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

Fix updates_packagekit_gpk for sles 15 #4445

Merged
merged 1 commit into from Feb 21, 2018
Merged

Fix updates_packagekit_gpk for sles 15 #4445

merged 1 commit into from Feb 21, 2018

Conversation

Zaoliang
Copy link
Contributor

@okurz
Copy link
Member

okurz commented Feb 20, 2018

Please call make test locally and report that it is fine then we can merge while the perl tidy changes are broken.

@Zaoliang
Copy link
Contributor Author

run make test prepare locally, no compilation failure for this file.

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

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

please fix one trivial issue and rebase. This should retrigger travis CI checks and work now as the broken perltidy version is avoided

@@ -43,8 +43,11 @@ sub tell_packagekit_to_quit {
# Update with GNOME PackageKit Update Viewer
sub run {
my ($self) = @_;
# updates_packagekit_gpk is disabled for SLE15 because of bsc#1060844
return record_soft_failure 'bsc#1060844' if sle_version_at_least('15') && is_sle();
if (sle_version_at_least('15') && is_sle) {
Copy link
Member

Choose a reason for hiding this comment

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

Please use more common order is_sle && sle_version_at_least('15')

- remove softfailure for bsc#1060844
- provide a workaround for bsc#1081584
- see poo#17712 for more details
- verification run:
  http://e13.suse.de/tests/373#step/updates_packagekit_gpk
- needle PR:
  https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_requests/712
@Zaoliang
Copy link
Contributor Author

@okurz yes, updated now, thanks

@rwx788 rwx788 merged commit 87e0253 into os-autoinst:master Feb 21, 2018
if (is_sle && sle_version_at_least('15')) {
select_console 'root-console';
zypper_call("in gnome-packagekit", timeout => 90);
record_soft_failure 'bsc#1081584';
Copy link
Member

Choose a reason for hiding this comment

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

Actually this code is wrong because the zypper in call will just ignore if the package actually is there so the soft-failure is shown regardless which it shouldn't be. See http://lord.arch.suse.de/tests/610#step/updates_packagekit_gpk/11 for an example showing the bug even though gnome-packagekit is already installed as a package. please fix by checking the return values of the zypper_call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants