mirror of https://github.com/docker/docs.git
commit
49d35cc0ae
|
@ -152,7 +152,6 @@ func TestRunWorkdirExists(t *testing.T) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestRunExit(t *testing.T) {
|
func TestRunExit(t *testing.T) {
|
||||||
stdin, stdinPipe := io.Pipe()
|
stdin, stdinPipe := io.Pipe()
|
||||||
stdout, stdoutPipe := io.Pipe()
|
stdout, stdoutPipe := io.Pipe()
|
||||||
|
|
|
@ -30,7 +30,6 @@ func setupWorkingDirectory(workdir string) {
|
||||||
syscall.Chdir(workdir)
|
syscall.Chdir(workdir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Takes care of dropping privileges to the desired user
|
// Takes care of dropping privileges to the desired user
|
||||||
func changeUser(u string) {
|
func changeUser(u string) {
|
||||||
if u == "" {
|
if u == "" {
|
||||||
|
|
Loading…
Reference in New Issue