don't call reexec.Init from chrootarchive
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
parent
57f40e0735
commit
d729913f31
2 changed files with 5 additions and 1 deletions
|
@ -7,8 +7,13 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/pkg/archive"
|
"github.com/docker/docker/pkg/archive"
|
||||||
|
"github.com/docker/docker/pkg/reexec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
reexec.Init()
|
||||||
|
}
|
||||||
|
|
||||||
func TestChrootTarUntar(t *testing.T) {
|
func TestChrootTarUntar(t *testing.T) {
|
||||||
tmpdir, err := ioutil.TempDir("", "docker-TestChrootTarUntar")
|
tmpdir, err := ioutil.TempDir("", "docker-TestChrootTarUntar")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -10,7 +10,6 @@ import (
|
||||||
func init() {
|
func init() {
|
||||||
reexec.Register("docker-untar", untar)
|
reexec.Register("docker-untar", untar)
|
||||||
reexec.Register("docker-applyLayer", applyLayer)
|
reexec.Register("docker-applyLayer", applyLayer)
|
||||||
reexec.Init()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func fatal(err error) {
|
func fatal(err error) {
|
||||||
|
|
Loading…
Reference in a new issue