Skip to content

Commit

Permalink
try #6 with only failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkermichael committed Oct 17, 2022
1 parent 4a5d5be commit 368a13b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/reusable-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ jobs:
kind create cluster --name dc1 --image kindest/node:${{ inputs.kind-version }}
kind create cluster --name dc2 --image kindest/node:${{ inputs.kind-version }}
- name: Build binaries
run: |
ls
sudo make cli-dev
# We have to run the tests for each package separately so that we can
# exit early if any test fails (-failfast only works within a single
# package).
Expand Down
24 changes: 0 additions & 24 deletions acceptance/framework/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,6 @@ type CLI struct {
// NewCLI compiles the `consul-k8s` CLI and returns a handle to execute commands
// with the binary.
func NewCLI() (*CLI, error) {
cmd := exec.Command("go", "build", "-o ./consul-k8s")
cmd.Dir = "../../../cli"
b, err := cmd.Output()
fmt.Println("Go build: " + string(b))
if err != nil {
return nil, err
}

cmd = exec.Command("echo", "$GOPATH")
cmd.Dir = "../../../cli"
b, err = cmd.Output()
fmt.Println(string(b))
if err != nil {
return nil, err
}

cmd = exec.Command("mv", "./consul-k8s ${GOPATH}/bin/")
cmd.Dir = "../../../cli"
b, err = cmd.Output()
fmt.Println("move: " + string(b))
if err != nil {
return nil, err
}

return &CLI{true}, nil
}

Expand Down

0 comments on commit 368a13b

Please sign in to comment.