diff options
author | Qi Wang <qiwan@redhat.com> | 2020-07-31 10:17:08 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2020-08-04 15:09:17 -0400 |
commit | 34e82f81bdbdd26b82501bc2d27d18aaab5747dd (patch) | |
tree | ed55fcaa4134fd868af07ff981af5d0eb5e4c809 /test | |
parent | d4cf3c589d09dd395a3b63e82f5a5c198535cb46 (diff) | |
download | podman-34e82f81bdbdd26b82501bc2d27d18aaab5747dd.tar.gz podman-34e82f81bdbdd26b82501bc2d27d18aaab5747dd.tar.bz2 podman-34e82f81bdbdd26b82501bc2d27d18aaab5747dd.zip |
validate fds --preserve-fds
validate file descriptors passed from podman run and podman exec --preserve-fds.
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_test.go | 7 | ||||
-rw-r--r-- | test/system/030-run.bats | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index f2a6d14eb..574c5c3f2 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -1063,6 +1063,13 @@ USER mail` Expect(session.ExitCode()).To(Equal(0)) }) + It("podman run --preserve-fds invalid fd", func() { + session := podmanTest.Podman([]string{"run", "--preserve-fds", "2", ALPINE}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Not(Equal(0))) + Expect(session.ErrorToString()).To(ContainSubstring("file descriptor 3 is not available")) + }) + It("podman run --privileged and --group-add", func() { groupName := "kvm" session := podmanTest.Podman([]string{"run", "-t", "-i", "--group-add", groupName, "--privileged", fedoraMinimal, "groups"}) diff --git a/test/system/030-run.bats b/test/system/030-run.bats index e93a2efe2..e2199335f 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -63,7 +63,6 @@ echo $rand | 0 | $rand # 'run --preserve-fds' passes a number of additional file descriptors into the container @test "podman run --preserve-fds" { - skip "enable this once #6653 is fixed" skip_if_remote content=$(random_string 20) |