Skip to content

Commit 18e472b

Browse files
authored
Merge pull request #1416 from NVIDIA/backport-1408-to-release-1.18
[release-1.18] Fix generate tests when cdi hook exists in path
2 parents 37a5613 + 62fe831 commit 18e472b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/nvidia-ctk/cdi/generate/generate_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ containerEdits:
450450
}
451451

452452
for _, tc := range testCases {
453+
// Apply overrides for all test cases:
454+
tc.options.nvidiaCDIHookPath = "/usr/bin/nvidia-cdi-hook"
455+
453456
t.Run(tc.description, func(t *testing.T) {
454457
c := command{
455458
logger: logger,

0 commit comments

Comments
 (0)