remove message during tests

This commit is contained in:
Victor Vieux 2013-08-29 22:59:34 +00:00
parent 740a97f1a8
commit f159f4710b
1 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ func (runtime *Runtime) Destroy(container *Container) error {
func (runtime *Runtime) restore() error { func (runtime *Runtime) restore() error {
wheel := "-\\|/" wheel := "-\\|/"
if os.Getenv("DEBUG") == "" { if os.Getenv("DEBUG") == "" && os.Getenv("TEST") == "" {
fmt.Printf("Loading containers: ") fmt.Printf("Loading containers: ")
} }
dir, err := ioutil.ReadDir(runtime.repository) dir, err := ioutil.ReadDir(runtime.repository)
@ -218,7 +218,7 @@ func (runtime *Runtime) restore() error {
for i, v := range dir { for i, v := range dir {
id := v.Name() id := v.Name()
container, err := runtime.Load(id) container, err := runtime.Load(id)
if i%21 == 0 && os.Getenv("DEBUG") == "" { if i%21 == 0 && os.Getenv("DEBUG") == "" && os.Getenv("TEST") == "" {
fmt.Printf("\b%c", wheel[i%4]) fmt.Printf("\b%c", wheel[i%4])
} }
if err != nil { if err != nil {
@ -227,7 +227,7 @@ func (runtime *Runtime) restore() error {
} }
utils.Debugf("Loaded container %v", container.ID) utils.Debugf("Loaded container %v", container.ID)
} }
if os.Getenv("DEBUG") == "" { if os.Getenv("DEBUG") == "" && os.Getenv("TEST") == "" {
fmt.Printf("\bdone.\n") fmt.Printf("\bdone.\n")
} }
return nil return nil