Skip to content

Commit

Permalink
Internal: add opensuse-leap to suse special handling in tests (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
Subbarker authored May 21, 2024
1 parent a906394 commit 46dc83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_test/gce/gce_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ func attemptCreateInstance(ctx context.Context, logger *log.Logger, options VMOp
vm.OS = *os
}

if vm.OS.ID == "opensuse" || vm.OS.ID == "sles" || vm.OS.ID == "sles_sap" {
if vm.OS.ID == "opensuse" || vm.OS.ID == "opensuse-leap" || vm.OS.ID == "sles" || vm.OS.ID == "sles_sap" {
// Set download.max_silent_tries to 5 (by default, it is commented out in
// the config file). This should help with issues like b/211003972.
if _, err := RunRemotely(ctx, logger, vm, "sudo sed -i -E 's/.*download.max_silent_tries.*/download.max_silent_tries = 5/g' /etc/zypp/zypp.conf"); err != nil {
Expand Down Expand Up @@ -1550,7 +1550,7 @@ func InstallGsutilIfNeeded(ctx context.Context, logger *log.Logger, vm *VM) erro

// SUSE seems to be the only distro without gsutil, so what follows is all
// very SUSE-specific.
if vm.OS.ID != "opensuse" && vm.OS.ID != "sles" && vm.OS.ID != "sles_sap" {
if vm.OS.ID != "opensuse" && vm.OS.ID != "opensuse-leap" && vm.OS.ID != "sles" && vm.OS.ID != "sles_sap" {
return installErr("gsutil", vm.OS.ID)
}

Expand Down

0 comments on commit 46dc83f

Please sign in to comment.