Skip to content

Commit 6cc4d6d

Browse files
authored
fix(ci): ignore kubectl logs exit codes in e2e test teardown (#1466)
Modify the StopV12nControllerLogStream function in E2E tests to ignore exit codes from kubectl logs commands during test teardown. The function now only captures warning messages while discarding error returns from the log stream command. Signed-off-by: Daniil Loktev <[email protected]>
1 parent b3d8865 commit 6cc4d6d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/e2e/tests_suite_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,8 @@ func StopV12nControllerLogStream(logStreamByPod map[string]*el.LogStream) []erro
292292
go func() {
293293
defer GinkgoRecover()
294294
defer logStream.LogStreamWaitGroup.Done()
295-
warn, err := logStream.WaitCmd()
295+
warn, _ := logStream.WaitCmd()
296296
mu.Lock()
297-
if err != nil {
298-
errs = append(errs, err)
299-
}
300297
if warn != "" {
301298
_, err := GinkgoWriter.Write([]byte(warn))
302299
if err != nil {

0 commit comments

Comments
 (0)