diff options
author | Sebastian Jug <seb@stianj.ug> | 2021-05-21 10:39:19 -0400 |
---|---|---|
committer | Sebastian Jug <seb@stianj.ug> | 2021-05-25 17:26:50 -0400 |
commit | 738a8fe637775e295af72cb55155a36fa366bfd7 (patch) | |
tree | fae5a513bd7c9bb92bc78b0b2395fb1c271d5071 /test | |
parent | e48aa8c82f7f26260f6911bb3ea99ff54c294675 (diff) | |
download | podman-738a8fe637775e295af72cb55155a36fa366bfd7.tar.gz podman-738a8fe637775e295af72cb55155a36fa366bfd7.tar.bz2 podman-738a8fe637775e295af72cb55155a36fa366bfd7.zip |
Add podman run --gpus flag for compatibility
- Add log message for --gpus flag
- Add test
Signed-off-by: Sebastian Jug <seb@stianj.ug>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_device_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/run_device_test.go b/test/e2e/run_device_test.go index 3137e3fe4..735e44d3e 100644 --- a/test/e2e/run_device_test.go +++ b/test/e2e/run_device_test.go @@ -113,4 +113,10 @@ var _ = Describe("Podman run device", func() { Expect(session.ExitCode()).To(Equal(0)) Expect(session.OutputToString()).To(Equal("/dev/kmsg1")) }) + + It("podman run --gpus noop", func() { + session := podmanTest.Podman([]string{"run", "--gpus", "all", ALPINE, "ls", "/"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) }) |