Skip to content

Commit

Permalink
test/e2e: on test failures dump server stack strace
Browse files Browse the repository at this point in the history
To debug containers#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 <pholzing@redhat.com>
  • Loading branch information
Luap99 committed Aug 15, 2024
1 parent 734c4b9 commit 535376b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/libpod_suite_remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 535376b

Please sign in to comment.