Skip to content

Commit

Permalink
TOFIX: Add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <elezar@nvidia.com>
  • Loading branch information
elezar committed Feb 12, 2024
1 parent 3c26fc1 commit c00e0f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/nerdctl/container_run_cgroup_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ func TestRunDeviceCDI(t *testing.T) {
specFile.Close()
os.Remove(cdiSpecFilename)
}()
err := exec.Command("cp).Run()


base := testutil.NewBase(t)
containerName := testutil.Identifier(t)
Expand Down
7 changes: 7 additions & 0 deletions cmd/nerdctl/testdata/cdi/vendor1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cdiVersion: "0.3.0"
kind: "vendor1.com/device"
devices:
- name: foo
containerEdits:
env:
- FOO=injected

0 comments on commit c00e0f5

Please sign in to comment.