From dad4c9fc77f3c5c05396259ef0990c1b338344da Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 3 Aug 2025 22:49:35 +0200 Subject: test_helpers: send SIGQUIT on mount timeout --- tests/test_helpers/mount_unmount.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go index 4abc432..277c8d8 100644 --- a/tests/test_helpers/mount_unmount.go +++ b/tests/test_helpers/mount_unmount.go @@ -95,6 +95,11 @@ func Mount(c string, p string, showOutput bool, extraArgs ...string) error { case <-chanUsr1: // noop case <-time.After(2 * time.Second): + fmt.Printf("Timeout, sending SIGQUIT and SIGKILL") + cmd.Process.Signal(syscall.SIGQUIT) + // SIGQUIT should trigger a backtrace. Give it some time to print it. + time.Sleep(time.Second) + cmd.Process.Kill() log.Panicf("Timeout waiting for process %d", pid) } -- cgit v1.2.3