Skip to content

Commit 0024007

Browse files
authored
Merge pull request #1408 from elezar/fix-generate-tests-on-arch
Fix generate tests when cdi hook exists in path
2 parents c881778 + 95a152a commit 0024007

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)