mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
small fixes
This commit is contained in:
@@ -382,13 +382,16 @@ func (h *lxcDriverHandle) Exec(ctx context.Context, cmd string, args []string) (
|
||||
}
|
||||
|
||||
func (h *lxcDriverHandle) Kill() error {
|
||||
h.logger.Printf("[INFO] driver.lxc: shutting down container %q", h.container.Name())
|
||||
name := h.container.Name()()
|
||||
|
||||
h.logger.Printf("[INFO] driver.lxc: shutting down container %q", nmae)
|
||||
if err := h.container.Shutdown(h.killTimeout); err != nil {
|
||||
h.logger.Printf("[INFO] driver.lxc: shutting down container %q failed: %v", h.container.Name(), err)
|
||||
h.logger.Printf("[INFO] driver.lxc: shutting down container %q failed: %v", name, err)
|
||||
if err := h.container.Stop(); err != nil {
|
||||
h.logger.Printf("[ERR] driver.lxc: error stopping container %q: %v", h.container.Name(), err)
|
||||
h.logger.Printf("[ERR] driver.lxc: error stopping container %q: %v", name, err)
|
||||
}
|
||||
}
|
||||
|
||||
close(h.doneCh)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ PING_LOOP_PID=$!
|
||||
|
||||
trap "kill $PING_LOOP_PID" EXIT HUP INT QUIT TERM
|
||||
|
||||
GOTEST_FLAGS="-parallel=8" make test
|
||||
GOTEST_FLAGS="-parallel=4" make test
|
||||
TEST_OUTPUT=$?
|
||||
|
||||
kill $PING_LOOP_PID
|
||||
|
||||
Reference in New Issue
Block a user