From a35236a8f6ca10d4f53d15fd7d9c0846763a7406 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 4 Oct 2022 14:14:44 +0200 Subject: [PATCH] Correct test cases for NVIDIA_VISIBLE_DEVICES=void Signed-off-by: Evan Lezar --- cmd/nvidia-container-runtime-hook/container_config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/nvidia-container-runtime-hook/container_config_test.go b/cmd/nvidia-container-runtime-hook/container_config_test.go index b01e219a..59431d5c 100644 --- a/cmd/nvidia-container-runtime-hook/container_config_test.go +++ b/cmd/nvidia-container-runtime-hook/container_config_test.go @@ -69,7 +69,7 @@ func TestGetNvidiaConfig(t *testing.T) { description: "Legacy image, devices 'void', no capabilities, no requirements", env: map[string]string{ envCUDAVersion: "9.0", - envNVVisibleDevices: "", + envNVVisibleDevices: "void", }, privileged: false, expectedConfig: nil, @@ -226,7 +226,7 @@ func TestGetNvidiaConfig(t *testing.T) { description: "Modern image, devices 'void', no capabilities, no requirements", env: map[string]string{ envNVRequireCUDA: "cuda>=9.0", - envNVVisibleDevices: "", + envNVVisibleDevices: "void", }, privileged: false, expectedConfig: nil,