Skip to content

Commit

Permalink
Fix docker ps command
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Aug 16, 2024
1 parent d250ce6 commit c6b3e51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cmd/integration-tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func executeCommand(command string, args []string, taskDescription string) bool
stdoutStr := stderr.String()
if len(stdoutStr) > 0 {
log.Printf("stdout:%s\n", stdoutStr)
} else {
log.Fatalf("No stdout was printed from task '%s'\n", taskDescription)
}
return success
}
Expand All @@ -56,7 +58,7 @@ func buildAgent() {
func setupEnvironment() {
success := executeCommand("docker-compose", []string{"up", "--abort-on-container-exit"}, "Setting up environment with Docker Compose")
if !success {
executeCommand("docker-compose", []string{"ps", "-las"}, "Docker ps")
executeCommand("docker", []string{"ps", "-las"}, "Docker ps")
}
fmt.Println("Sleep for 30 seconds to ensure that the env has time to initialize...")
time.Sleep(30 * time.Second)
Expand Down

0 comments on commit c6b3e51

Please sign in to comment.