Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-prindle committed Oct 17, 2023
1 parent 3076bf1 commit 48608d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- k8s-executor-build-push integration-test-k8s

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.20'
Expand Down
17 changes: 6 additions & 11 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,20 +605,15 @@ func buildImage(t *testing.T, dockerfile string, imageBuilder *DockerFileBuilder
// Define the command and arguments
cmd := exec.Command("kubectl", "--kubeconfig=/etc/rancher/k3s/k3s.yaml", "get", "po", "-n", "kube-system")

// Create a buffer to capture the output
var out bytes.Buffer
cmd.Stdout = &out
var podInfo bytes.Buffer
cmd.Stdout = &podInfo

// Run the command
err := cmd.Run()
if err != nil {
log.Fatal(err)
cmdErr := cmd.Run()
if cmdErr != nil {
log.Fatal(cmdErr)
}

// Store the output in a string
cmdOutput := out.String()

t.Errorf("cmdOutput: %s\n", cmdOutput)
t.Errorf("cmdOutput: %s\n", podInfo.String())
t.Errorf("Error building image: %s", err)
t.FailNow()
}
Expand Down

0 comments on commit 48608d8

Please sign in to comment.