From 1c4d19476294377e0c0d7b3ae3cada7d947c13bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20August=C3=BDn?= Date: Wed, 9 Aug 2023 22:11:34 +0200 Subject: [PATCH] fix: stderr of executed docker command ignored again --- .../groovy/com/avast/gradle/dockercompose/DockerExecutor.groovy | 1 - src/test/groovy/com/avast/gradle/dockercompose/Fixture.groovy | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/groovy/com/avast/gradle/dockercompose/DockerExecutor.groovy b/src/main/groovy/com/avast/gradle/dockercompose/DockerExecutor.groovy index 53be6c16..f01786de 100644 --- a/src/main/groovy/com/avast/gradle/dockercompose/DockerExecutor.groovy +++ b/src/main/groovy/com/avast/gradle/dockercompose/DockerExecutor.groovy @@ -29,7 +29,6 @@ class DockerExecutor { def finalArgs = [settings.dockerExecutable.get()] finalArgs.addAll(args) e.commandLine finalArgs - e.errorOutput = os e.standardOutput = os e.ignoreExitValue = true } diff --git a/src/test/groovy/com/avast/gradle/dockercompose/Fixture.groovy b/src/test/groovy/com/avast/gradle/dockercompose/Fixture.groovy index 81ebff67..ef70aa69 100644 --- a/src/test/groovy/com/avast/gradle/dockercompose/Fixture.groovy +++ b/src/test/groovy/com/avast/gradle/dockercompose/Fixture.groovy @@ -14,7 +14,7 @@ class Fixture implements AutoCloseable { services: web: image: nginx:stable - command: bash -c "sleep 5 && nginx -g 'daemon off;'" + command: bash -c " echo 'starting nginx' && sleep 5 && nginx -g 'daemon off;'" ports: - 80 ''')