Skip to content

Commit 08b3a38

Browse files
authored
Merge pull request #1206 from elezar/fix-symlink-tests
[no-relnote] Adjust test for removed driver symlink
2 parents fc73b50 + f9ad182 commit 08b3a38

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/e2e/nvidia-container-toolkit_test.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,15 @@ var _ = Describe("docker", Ordered, ContinueOnFailure, func() {
343343
Expect(chain[3]).To(HaveSuffix(hostDriverVersion))
344344
Expect(chain[4]).To(HaveSuffix(hostDriverVersion))
345345
}
346-
Expect(symlinks).To(And(HaveKey("libcuda.so"), HaveKey("libnvidia-ml.so")))
346+
Expect(symlinks).To(And(
347+
HaveKey("libcuda.so"),
348+
HaveKey("libnvcuvid.so"),
349+
))
350+
351+
// The libnvidia-ml.so symlink was removed in the 560 driver branch.
352+
if hostDriverMajor < "560" {
353+
Expect(symlinks).To(HaveKey("libnvidia-ml.so"))
354+
}
347355
})
348356
})
349357

0 commit comments

Comments
 (0)