Skip to content

Commit

Permalink
Fix zypper refresh timeout in zypper_lifecycle
Browse files Browse the repository at this point in the history
Enhance the current logic not to remove the zypper cache.
  • Loading branch information
rfan1 committed Aug 18, 2022
1 parent 2b02a47 commit 032fd09
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/console/zypper_lifecycle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ sub run {
# 0755 and all files have 0644 pemmission.
# For some reason the system will change the permission on /var/cache/zypp/{solv,raw}
# files. this cause the zypper lifecycle failed when building cache for non-root user.
script_run('rm -fr /var/cache/zypp/solv /var/cache/zypp/solv');
script_run('rm -fr /var/cache/zypp/raw /var/cache/zypp/raw');

# We add 'zypper ref' here to download and preparse the metadata of packages,
# which will make the following 'zypper lifecycle' runs faster.
script_run('zypper refresh', 300);
assert_script_run('chmod -R u+rwX,og+rX /var/cache/zypp');

select_console 'user-console';
my $overview = script_output('zypper lifecycle', 600);
Expand Down

0 comments on commit 032fd09

Please sign in to comment.