@@ -280,7 +280,7 @@ teardown() {
280280 assert [ ${# stderr_lines[@]} -eq 0 ]
281281}
282282
283- @test " cdi: Try hook with unknown args (a) " {
283+ @test " cdi: Try hook with unknown args" {
284284 local toolbx_runtime_directory=" $XDG_RUNTIME_DIR /toolbox"
285285
286286 create_default_container
@@ -309,35 +309,6 @@ teardown() {
309309 assert [ ${# stderr_lines[@]} -eq 0 ]
310310}
311311
312- @test " cdi: Try hook with unknown args (b)" {
313- local toolbx_runtime_directory=" $XDG_RUNTIME_DIR /toolbox"
314-
315- create_default_container
316-
317- # shellcheck disable=SC2174
318- mkdir --mode 700 --parents " $toolbx_runtime_directory "
319-
320- cp " $BATS_TEST_DIRNAME /data/cdi-hooks-13.json" " $toolbx_runtime_directory /cdi-nvidia.json"
321- chmod 644 " $toolbx_runtime_directory /cdi-nvidia.json"
322-
323- run --keep-empty-lines --separate-stderr " $TOOLBX " run \
324- test /etc/ld.so.cache -ot " $toolbx_runtime_directory /cdi-nvidia.json"
325-
326- if ! cmp --silent " $BATS_TEST_DIRNAME /data/cdi-hooks-13.json" " $toolbx_runtime_directory /cdi-nvidia.json" ; then
327- skip " found NVIDIA hardware"
328- fi
329-
330- assert_success
331- assert [ ${# lines[@]} -eq 0 ]
332- assert [ ${# stderr_lines[@]} -eq 0 ]
333-
334- run --keep-empty-lines --separate-stderr " $TOOLBX " run test -e /etc/ld.so.conf.d/toolbx-nvidia.conf
335-
336- assert_failure
337- assert [ ${# lines[@]} -eq 0 ]
338- assert [ ${# stderr_lines[@]} -eq 0 ]
339- }
340-
341312@test " cdi: Try hook with invalid name" {
342313 local toolbx_runtime_directory=" $XDG_RUNTIME_DIR /toolbox"
343314
0 commit comments