@@ -40,7 +40,6 @@ func TestGetNvidiaConfig(t *testing.T) {
4040 Devices : "all" ,
4141 DriverCapabilities : allDriverCapabilities .String (),
4242 Requirements : []string {"cuda>=9.0" },
43- DisableRequire : false ,
4443 },
4544 },
4645 {
@@ -54,7 +53,6 @@ func TestGetNvidiaConfig(t *testing.T) {
5453 Devices : "all" ,
5554 DriverCapabilities : allDriverCapabilities .String (),
5655 Requirements : []string {"cuda>=9.0" },
57- DisableRequire : false ,
5856 },
5957 },
6058 {
@@ -86,7 +84,6 @@ func TestGetNvidiaConfig(t *testing.T) {
8684 Devices : "" ,
8785 DriverCapabilities : allDriverCapabilities .String (),
8886 Requirements : []string {"cuda>=9.0" },
89- DisableRequire : false ,
9087 },
9188 },
9289 {
@@ -100,7 +97,6 @@ func TestGetNvidiaConfig(t *testing.T) {
10097 Devices : "gpu0,gpu1" ,
10198 DriverCapabilities : allDriverCapabilities .String (),
10299 Requirements : []string {"cuda>=9.0" },
103- DisableRequire : false ,
104100 },
105101 },
106102 {
@@ -115,7 +111,6 @@ func TestGetNvidiaConfig(t *testing.T) {
115111 Devices : "gpu0,gpu1" ,
116112 DriverCapabilities : defaultDriverCapabilities .String (),
117113 Requirements : []string {"cuda>=9.0" },
118- DisableRequire : false ,
119114 },
120115 },
121116 {
@@ -130,7 +125,6 @@ func TestGetNvidiaConfig(t *testing.T) {
130125 Devices : "gpu0,gpu1" ,
131126 DriverCapabilities : allDriverCapabilities .String (),
132127 Requirements : []string {"cuda>=9.0" },
133- DisableRequire : false ,
134128 },
135129 },
136130 {
@@ -145,7 +139,6 @@ func TestGetNvidiaConfig(t *testing.T) {
145139 Devices : "gpu0,gpu1" ,
146140 DriverCapabilities : "video,display" ,
147141 Requirements : []string {"cuda>=9.0" },
148- DisableRequire : false ,
149142 },
150143 },
151144 {
@@ -162,7 +155,6 @@ func TestGetNvidiaConfig(t *testing.T) {
162155 Devices : "gpu0,gpu1" ,
163156 DriverCapabilities : "video,display" ,
164157 Requirements : []string {"cuda>=9.0" , "req0=true" , "req1=false" },
165- DisableRequire : false ,
166158 },
167159 },
168160 {
@@ -179,8 +171,7 @@ func TestGetNvidiaConfig(t *testing.T) {
179171 expectedConfig : & nvidiaConfig {
180172 Devices : "gpu0,gpu1" ,
181173 DriverCapabilities : "video,display" ,
182- Requirements : []string {"cuda>=9.0" , "req0=true" , "req1=false" },
183- DisableRequire : true ,
174+ Requirements : []string {},
184175 },
185176 },
186177 {
@@ -211,7 +202,6 @@ func TestGetNvidiaConfig(t *testing.T) {
211202 Devices : "all" ,
212203 DriverCapabilities : defaultDriverCapabilities .String (),
213204 Requirements : []string {"cuda>=9.0" },
214- DisableRequire : false ,
215205 },
216206 },
217207 {
@@ -243,7 +233,6 @@ func TestGetNvidiaConfig(t *testing.T) {
243233 Devices : "" ,
244234 DriverCapabilities : defaultDriverCapabilities .String (),
245235 Requirements : []string {"cuda>=9.0" },
246- DisableRequire : false ,
247236 },
248237 },
249238 {
@@ -257,7 +246,6 @@ func TestGetNvidiaConfig(t *testing.T) {
257246 Devices : "gpu0,gpu1" ,
258247 DriverCapabilities : defaultDriverCapabilities .String (),
259248 Requirements : []string {"cuda>=9.0" },
260- DisableRequire : false ,
261249 },
262250 },
263251 {
@@ -272,7 +260,6 @@ func TestGetNvidiaConfig(t *testing.T) {
272260 Devices : "gpu0,gpu1" ,
273261 DriverCapabilities : defaultDriverCapabilities .String (),
274262 Requirements : []string {"cuda>=9.0" },
275- DisableRequire : false ,
276263 },
277264 },
278265 {
@@ -287,7 +274,6 @@ func TestGetNvidiaConfig(t *testing.T) {
287274 Devices : "gpu0,gpu1" ,
288275 DriverCapabilities : allDriverCapabilities .String (),
289276 Requirements : []string {"cuda>=9.0" },
290- DisableRequire : false ,
291277 },
292278 },
293279 {
@@ -302,7 +288,6 @@ func TestGetNvidiaConfig(t *testing.T) {
302288 Devices : "gpu0,gpu1" ,
303289 DriverCapabilities : "video,display" ,
304290 Requirements : []string {"cuda>=9.0" },
305- DisableRequire : false ,
306291 },
307292 },
308293 {
@@ -319,7 +304,6 @@ func TestGetNvidiaConfig(t *testing.T) {
319304 Devices : "gpu0,gpu1" ,
320305 DriverCapabilities : "video,display" ,
321306 Requirements : []string {"cuda>=9.0" , "req0=true" , "req1=false" },
322- DisableRequire : false ,
323307 },
324308 },
325309 {
@@ -336,8 +320,7 @@ func TestGetNvidiaConfig(t *testing.T) {
336320 expectedConfig : & nvidiaConfig {
337321 Devices : "gpu0,gpu1" ,
338322 DriverCapabilities : "video,display" ,
339- Requirements : []string {"cuda>=9.0" , "req0=true" , "req1=false" },
340- DisableRequire : true ,
323+ Requirements : []string {},
341324 },
342325 },
343326 {
@@ -351,7 +334,6 @@ func TestGetNvidiaConfig(t *testing.T) {
351334 Devices : "all" ,
352335 DriverCapabilities : defaultDriverCapabilities .String (),
353336 Requirements : []string {},
354- DisableRequire : false ,
355337 },
356338 },
357339 {
@@ -367,7 +349,6 @@ func TestGetNvidiaConfig(t *testing.T) {
367349 MigConfigDevices : "mig0,mig1" ,
368350 DriverCapabilities : defaultDriverCapabilities .String (),
369351 Requirements : []string {"cuda>=9.0" },
370- DisableRequire : false ,
371352 },
372353 },
373354 {
@@ -393,7 +374,6 @@ func TestGetNvidiaConfig(t *testing.T) {
393374 MigMonitorDevices : "mig0,mig1" ,
394375 DriverCapabilities : defaultDriverCapabilities .String (),
395376 Requirements : []string {"cuda>=9.0" },
396- DisableRequire : false ,
397377 },
398378 },
399379 {
@@ -525,7 +505,6 @@ func TestGetNvidiaConfig(t *testing.T) {
525505 require .Equal (t , tc .expectedConfig .DriverCapabilities , config .DriverCapabilities )
526506
527507 require .ElementsMatch (t , tc .expectedConfig .Requirements , config .Requirements )
528- require .Equal (t , tc .expectedConfig .DisableRequire , config .DisableRequire )
529508 })
530509 }
531510}
0 commit comments