Skip to content

Commit

Permalink
more debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
alphanota committed Dec 24, 2024
1 parent 4328087 commit bdca4f7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions integration/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestDevSyncDefaultNamespace(t *testing.T) {
}
id := "test-file-sync-" + uuid.New().String()
ops := []byte(
`---
`---
- op: replace
path: /metadata/name
value: ` + id)
Expand Down Expand Up @@ -175,21 +175,26 @@ func TestDevAutoSync(t *testing.T) {
ctx := context.Background()
ns, client := SetupNamespace(t)

kCmd := exec.Command("kubectl", "version")
if err := kCmd.Run(); err != nil {
o, err := exec.Command("kubectl", "version").Output()
if err != nil {
t.Errorf("Error running kubectl: %v", err)
}
log.Entry(ctx).Infof(string(o))

kCmd = exec.Command("kubectl", "get", "namespaces")
if err := kCmd.Run(); err != nil {
o, err = exec.Command("kubectl", "get", "namespaces").Output()
if err != nil {
t.Errorf("error running kubectl get namespaces:%v", err)
}
log.Entry(ctx).Infof(string(o))

kCmd = exec.Command("./gradlew", "clean")
kCmd.Dir = dir
if err := kCmd.Run(); err != nil {
gCmd := exec.Command("./gradlew", "clean")

gCmd.Dir = dir
o, err = gCmd.Output()
if err != nil {
t.Errorf("error running kubectl get namespaces:%v", err)
}
log.Entry(ctx).Infof(string(o))

rpcAddr := randomPort()
log.Entry(ctx).Infof("running skaffold dev")
Expand Down

0 comments on commit bdca4f7

Please sign in to comment.