diff --git a/test/e2e/pkg/infra/docker/docker.go b/test/e2e/pkg/infra/docker/docker.go index 80798e26e..19a2934aa 100644 --- a/test/e2e/pkg/infra/docker/docker.go +++ b/test/e2e/pkg/infra/docker/docker.go @@ -103,8 +103,8 @@ func ExecCompose(ctx context.Context, dir string, args ...string) error { } // ExecComposeVerbose runs a Docker Compose command for a testnet and displays its output. -func ExecComposeVerbose(dir string, args ...string) error { - return exec.CommandVerbose(context.Background(), append( +func ExecComposeVerbose(ctx context.Context, dir string, args ...string) error { + return exec.CommandVerbose(ctx, append( []string{"docker-compose", "-f", filepath.Join(dir, "docker-compose.yml")}, args...)...) } diff --git a/test/e2e/runner/main.go b/test/e2e/runner/main.go index 79279a1a4..195174b39 100644 --- a/test/e2e/runner/main.go +++ b/test/e2e/runner/main.go @@ -276,7 +276,7 @@ func NewCLI() *CLI { Use: "logs", Short: "Shows the testnet logs", RunE: func(cmd *cobra.Command, args []string) error { - return docker.ExecComposeVerbose(cli.testnet.Dir, "logs") + return docker.ExecComposeVerbose(context.Background(), cli.testnet.Dir, "logs") }, }) @@ -284,7 +284,7 @@ func NewCLI() *CLI { Use: "tail", Short: "Tails the testnet logs", RunE: func(cmd *cobra.Command, args []string) error { - return docker.ExecComposeVerbose(cli.testnet.Dir, "logs", "--follow") + return docker.ExecComposeVerbose(context.Background(), cli.testnet.Dir, "logs", "--follow") }, })