diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-09 16:40:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 16:40:32 +0200 |
commit | 3a4bd395164c97bf4b8b1fcb97f2475ca188866e (patch) | |
tree | 0ea6731642214231446e5e2c53ed33c80347b0d7 /test/e2e/libpod_suite_remoteclient_test.go | |
parent | 1662310e516cb3c21842f59b8f607bb0af408ec5 (diff) | |
parent | 4503650f418aa0da0c6e63949c60a9af035f8681 (diff) | |
download | podman-3a4bd395164c97bf4b8b1fcb97f2475ca188866e.tar.gz podman-3a4bd395164c97bf4b8b1fcb97f2475ca188866e.tar.bz2 podman-3a4bd395164c97bf4b8b1fcb97f2475ca188866e.zip |
Merge pull request #5771 from giuseppe/fix-exec-preserve-fd
test: fix exec preserve-fds test
Diffstat (limited to 'test/e2e/libpod_suite_remoteclient_test.go')
-rw-r--r-- | test/e2e/libpod_suite_remoteclient_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/libpod_suite_remoteclient_test.go b/test/e2e/libpod_suite_remoteclient_test.go index c87ff016a..b5da041ab 100644 --- a/test/e2e/libpod_suite_remoteclient_test.go +++ b/test/e2e/libpod_suite_remoteclient_test.go @@ -34,6 +34,12 @@ func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration return &PodmanSessionIntegration{podmanSession} } +// PodmanExtraFiles is the exec call to podman on the filesystem and passes down extra files +func (p *PodmanTestIntegration) PodmanExtraFiles(args []string, extraFiles []*os.File) *PodmanSessionIntegration { + podmanSession := p.PodmanAsUserBase(args, 0, 0, "", nil, false, false, nil, extraFiles) + return &PodmanSessionIntegration{podmanSession} +} + // PodmanNoCache calls podman with out adding the imagecache func (p *PodmanTestIntegration) PodmanNoCache(args []string) *PodmanSessionIntegration { podmanSession := p.PodmanBase(args, false, true) |