mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 20:48:11 +00:00
Run test in foreground
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
35125bba13
commit
2f99a71e4f
5
Makefile
5
Makefile
@ -24,9 +24,8 @@ test: Dockerfile.test alpine/initrd.img alpine/kernel/x86_64/vmlinuz64
|
|||||||
$(MAKE) -C alpine
|
$(MAKE) -C alpine
|
||||||
tar cf - $^ | docker build -f Dockerfile.test -t mobytest:build -
|
tar cf - $^ | docker build -f Dockerfile.test -t mobytest:build -
|
||||||
touch test.log
|
touch test.log
|
||||||
docker run --rm mobytest:build 2>&1 | tee -a test.log &
|
docker run --rm mobytest:build 2>&1 | tee -a test.log
|
||||||
tail -f test.log 2>/dev/null | grep -m 1 -q 'Moby test suite '
|
@cat test.log | grep -q 'Moby test suite PASSED'
|
||||||
cat test.log | grep -q 'Moby test suite PASSED'
|
|
||||||
|
|
||||||
TAG=$(shell git rev-parse HEAD)
|
TAG=$(shell git rev-parse HEAD)
|
||||||
STATUS=$(shell git status -s)
|
STATUS=$(shell git status -s)
|
||||||
|
Loading…
Reference in New Issue
Block a user