1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Use testEnv methods and remove most of the global variables

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-01-13 17:23:28 +01:00
parent a7c3389a82
commit c8016e669f
No known key found for this signature in database
GPG key ID: 083CC6FD6EB699A3
40 changed files with 180 additions and 231 deletions

View file

@ -41,7 +41,7 @@ func (s *DockerSuite) TestCpCheckDestOwnership(c *check.C) {
}
func getRootUIDGID() (int, int, error) {
uidgid := strings.Split(filepath.Base(dockerBasePath), ".")
uidgid := strings.Split(filepath.Base(testEnv.DockerBasePath()), ".")
if len(uidgid) == 1 {
//user namespace remapping is not turned on; return 0
return 0, 0, nil