Skip to content

Commit

Permalink
Fix test/e2e/cli bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kispaljr committed May 27, 2024
1 parent a0fc113 commit e7e234c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/clean-kind-only-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ kubectl rollout status deployment porch-controllers --namespace porch-system
kubectl rollout status deployment porch-server --namespace porch-system
kubectl rollout status deployment function-runner --namespace porch-system
sleep 2
E2E=1 go test -v ./test/e2e

echo "--- test/e2e ---"
E2E=1 go test -failfast -v ./test/e2e
echo "--- test/e2e/cli ---"
E2E=1 go test -failfast -v ./test/e2e/cli
2 changes: 1 addition & 1 deletion test/e2e/cli/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (

func GetGitServerImageName(t *testing.T) string {
cmd := exec.Command("kubectl", "get", "pods", "--selector=app=function-runner", "--namespace=porch-system",
"--output=jsonpath={.items[*].spec.containers[*].image}")
"--output=jsonpath={.items[0].spec.containers[0].image}")

var stderr bytes.Buffer
var stdout bytes.Buffer
Expand Down

0 comments on commit e7e234c

Please sign in to comment.