From 266c4952a89be89b1741f9fa69443f51387dd5c6 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 22 Nov 2018 10:57:05 +0100 Subject: tests: change return type for PodmanAsUser to PodmanTestIntegration Signed-off-by: Giuseppe Scrivano --- test/e2e/libpod_suite_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/e2e') diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go index 52507c083..f4f154ef2 100644 --- a/test/e2e/libpod_suite_test.go +++ b/test/e2e/libpod_suite_test.go @@ -181,6 +181,12 @@ func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration return &PodmanSessionIntegration{podmanSession} } +// PodmanAsUser is the exec call to podman on the filesystem with the specified uid/gid and environment +func (p *PodmanTestIntegration) PodmanAsUser(args []string, uid, gid uint32, env []string) *PodmanSessionIntegration { + podmanSession := p.PodmanAsUserBase(args, uid, gid, env) + return &PodmanSessionIntegration{podmanSession} +} + // PodmanPID execs podman and returns its PID func (p *PodmanTestIntegration) PodmanPID(args []string) (*PodmanSessionIntegration, int) { podmanOptions := p.MakeOptions(args) -- cgit v1.2.3-54-g00ecf