mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 14:58:16 +00:00
Merge pull request #2481 from Bevisy/main-1494
Makefile: update `make go-test` call
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 Intel Corporation
|
# Copyright (c) 2020 Intel Corporation
|
||||||
#
|
#
|
||||||
|
@@ -588,14 +588,12 @@ test: install-hook go-test
|
|||||||
|
|
||||||
install-hook:
|
install-hook:
|
||||||
make -C virtcontainers hook
|
make -C virtcontainers hook
|
||||||
ifeq ($(shell id -u), 0)
|
|
||||||
echo "installing mock hook"
|
echo "installing mock hook"
|
||||||
make -C virtcontainers install
|
sudo -E make -C virtcontainers install
|
||||||
endif
|
|
||||||
|
|
||||||
go-test: $(GENERATED_FILES)
|
go-test: $(GENERATED_FILES)
|
||||||
go clean -testcache
|
go clean -testcache
|
||||||
go test -v -mod=vendor ./...
|
$(QUIET_TEST)../../ci/go-test.sh
|
||||||
|
|
||||||
fast-test: $(GENERATED_FILES)
|
fast-test: $(GENERATED_FILES)
|
||||||
go clean -testcache
|
go clean -testcache
|
||||||
|
@@ -36,6 +36,7 @@ func (tty *ttyIO) close() {
|
|||||||
|
|
||||||
if tty.Stdin != nil {
|
if tty.Stdin != nil {
|
||||||
tty.Stdin.Close()
|
tty.Stdin.Close()
|
||||||
|
tty.Stdin = nil
|
||||||
}
|
}
|
||||||
cf := func(w io.Writer) {
|
cf := func(w io.Writer) {
|
||||||
if w == nil {
|
if w == nil {
|
||||||
@@ -111,7 +112,6 @@ func ioCopy(exitch, stdinCloser chan struct{}, tty *ttyIO, stdinPipe io.WriteClo
|
|||||||
if tty.Stdin != nil {
|
if tty.Stdin != nil {
|
||||||
// close stdin to make the other routine stop
|
// close stdin to make the other routine stop
|
||||||
tty.Stdin.Close()
|
tty.Stdin.Close()
|
||||||
tty.Stdin = nil
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user