Skip to content

Commit

Permalink
add cond for checkout
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Nov 28, 2021
1 parent 4632300 commit 58a648b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/base/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package base

import (
"fmt"
"strings"

"github.com/networkservicemesh/gotestmd/pkg/suites/shell"
"github.com/networkservicemesh/integration-tests/extensions/checkout"
Expand Down Expand Up @@ -59,6 +60,11 @@ func (s *Suite) SetupSuite() {
repo := "networkservicemesh/deployments-k8s"

s.checkout.Version = sha[:8]

if strings.Contains(sha, "tags") {
s.checkout.Version = sha
}

s.checkout.Dir = "../" // Note: this should be synced with input parameters in gen.go file
s.checkout.Repository = repo
s.checkout.SetT(s.T())
Expand Down

0 comments on commit 58a648b

Please sign in to comment.