This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 59e34eebfc test(plc4go): detect more CI runtimes
59e34eebfc is described below

commit 59e34eebfc38e1c94aeec91be4e79dbe69707a1a
Author: Sebastian Rühl <[email protected]>
AuthorDate: Fri Jun 2 12:04:04 2023 +0200

    test(plc4go): detect more CI runtimes
---
 plc4go/spi/testutils/TestUtils.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plc4go/spi/testutils/TestUtils.go 
b/plc4go/spi/testutils/TestUtils.go
index c4a7fb80b3..6d5cf89bcd 100644
--- a/plc4go/spi/testutils/TestUtils.go
+++ b/plc4go/spi/testutils/TestUtils.go
@@ -112,7 +112,9 @@ func ProduceTestingLogger(t *testing.T) zerolog.Logger {
                        func(w *zerolog.ConsoleWriter) {
                                // TODO: this is really an issue with 
go-junit-report not sanitizing output before dumping into xml...
                                onJenkins := os.Getenv("JENKINS_URL") != ""
-                               if onJenkins {
+                               onGithubAction := os.Getenv("GITHUB_ACTIONS") 
!= ""
+                               onCI := os.Getenv("CI") != ""
+                               if onJenkins || onGithubAction || onCI {
                                        w.NoColor = true
                                }
                        },

Reply via email to