Skip to content

Commit

Permalink
kola/nvidia: Change the nvidia retry clause
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sayanchowdhury committed Oct 5, 2023
1 parent d00dfd5 commit ec52679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kola/tests/misc/nvidia.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec52679

Please sign in to comment.