From ec52679f3152101b294978e56bc9703192a9fe1b Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Fri, 15 Sep 2023 13:13:49 +0530 Subject: [PATCH] kola/nvidia: Change the nvidia retry clause The nvidia.service has been change to `oneshot` and sets `RemainAfterExit=true` which keeps the service active after it exits. Signed-off-by: Sayan Chowdhury --- kola/tests/misc/nvidia.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kola/tests/misc/nvidia.go b/kola/tests/misc/nvidia.go index a78c3b3de..7a6f24edf 100644 --- a/kola/tests/misc/nvidia.go +++ b/kola/tests/misc/nvidia.go @@ -38,8 +38,8 @@ func verifyNvidiaInstallation(c cluster.TestCluster) { m := c.Machines()[0] nvidiaStatusRetry := func() error { - out, err := c.SSH(m, "systemctl is-active nvidia.service") - if !bytes.Contains(out, []byte("inactive")) { + out, err := c.SSH(m, "systemctl status nvidia.service") + if !bytes.Contains(out, []byte("active (exited)")) { return fmt.Errorf("nvidia.service: %q: %v", out, err) } return nil