From 5331fde2afc6224b10e828ad09f3ffe05f7f4e5e Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 13 May 2022 13:22:36 -0400 Subject: [PATCH] 19099: Show lsns debug info if test fails. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/crunchrun/executor_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/crunchrun/executor_test.go b/lib/crunchrun/executor_test.go index c516a8b984..dcb4265c6a 100644 --- a/lib/crunchrun/executor_test.go +++ b/lib/crunchrun/executor_test.go @@ -12,6 +12,7 @@ import ( "net" "net/http" "os" + "os/exec" "strings" "time" @@ -200,6 +201,9 @@ func (s *executorSuite) TestIPAddress(c *C) { resp, err := http.DefaultClient.Do(req) c.Assert(err, IsNil) c.Check(resp.StatusCode, Equals, http.StatusTeapot) + } else { + lsns, err := exec.Command("lsns").CombinedOutput() + c.Logf("lsns (err == %v):\n%s", err, lsns) } s.executor.Stop() -- 2.30.2