From 535376b4375c7865caedfad6b69d905efb2330ad Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 15 Aug 2024 15:58:01 +0200 Subject: [PATCH] test/e2e: on test failures dump server stack strace To debug #22246, not sure if this will work. We likely kill the client before which means the connection is likely closed and we do not see the hang or whever happens. Signed-off-by: Paul Holzinger --- test/e2e/libpod_suite_remote_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/libpod_suite_remote_test.go b/test/e2e/libpod_suite_remote_test.go index 44a79eaf3621..d87da0b0c294 100644 --- a/test/e2e/libpod_suite_remote_test.go +++ b/test/e2e/libpod_suite_remote_test.go @@ -103,7 +103,11 @@ func (p *PodmanTestIntegration) StartRemoteService() { } func (p *PodmanTestIntegration) StopRemoteService() { - if err := p.RemoteSession.Signal(syscall.SIGTERM); err != nil { + signal := syscall.SIGTERM + if CurrentSpecReport().Failed() { + signal = syscall.SIGABRT + } + if err := p.RemoteSession.Signal(signal); err != nil { GinkgoWriter.Printf("unable to clean up service %d, %v\n", p.RemoteSession.Pid, err) } if _, err := p.RemoteSession.Wait(); err != nil {