Use tmpfs containers for api/api4 tests, move and speed up CLI tests (#7606)
* use tmpfs containers for api/api4, move and speed up cli tests * minor optimizations * add missing files, fix pre-existing race condition * add . to TestMain check * add requested log message
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
86a0e16035
Коммит
917e4789c2
@@ -31,7 +31,7 @@ type RunningContainer struct {
|
||||
}
|
||||
|
||||
func (c *RunningContainer) Stop() error {
|
||||
l4g.Info("removing container: %v", c.Id)
|
||||
l4g.Info("Removing container: %v", c.Id)
|
||||
return exec.Command("docker", "rm", "-f", c.Id).Run()
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ func runContainer(args []string) (*RunningContainer, error) {
|
||||
exec.Command("docker", "rm", "-f", id).Run()
|
||||
return nil, err
|
||||
}
|
||||
l4g.Info("running container: %v", id)
|
||||
l4g.Info("Running container: %v", id)
|
||||
return &RunningContainer{containers[0]}, nil
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user