mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Correct test cases for NVIDIA_VISIBLE_DEVICES=void
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
0c2e72b7c1
commit
a35236a8f6
@ -69,7 +69,7 @@ func TestGetNvidiaConfig(t *testing.T) {
|
|||||||
description: "Legacy image, devices 'void', no capabilities, no requirements",
|
description: "Legacy image, devices 'void', no capabilities, no requirements",
|
||||||
env: map[string]string{
|
env: map[string]string{
|
||||||
envCUDAVersion: "9.0",
|
envCUDAVersion: "9.0",
|
||||||
envNVVisibleDevices: "",
|
envNVVisibleDevices: "void",
|
||||||
},
|
},
|
||||||
privileged: false,
|
privileged: false,
|
||||||
expectedConfig: nil,
|
expectedConfig: nil,
|
||||||
@ -226,7 +226,7 @@ func TestGetNvidiaConfig(t *testing.T) {
|
|||||||
description: "Modern image, devices 'void', no capabilities, no requirements",
|
description: "Modern image, devices 'void', no capabilities, no requirements",
|
||||||
env: map[string]string{
|
env: map[string]string{
|
||||||
envNVRequireCUDA: "cuda>=9.0",
|
envNVRequireCUDA: "cuda>=9.0",
|
||||||
envNVVisibleDevices: "",
|
envNVVisibleDevices: "void",
|
||||||
},
|
},
|
||||||
privileged: false,
|
privileged: false,
|
||||||
expectedConfig: nil,
|
expectedConfig: nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user