From 40d6e10924e6cd1246d6cd244a381aa7162d2ba1 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Mon, 18 Jul 2016 16:05:01 +0100 Subject: [PATCH] Improve make test output Incrementally output log, and exit as soon as tests pass or fail. Will still timeout on a kernel panic or suchlike though... Signed-off-by: Justin Cormack --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b51872352..4c00f2f57 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,9 @@ qemu-arm: Dockerfile.qemu.armhf arm test: Dockerfile.test all docker build -f Dockerfile.test -t mobytest:build . - docker run --rm mobytest:build | tee test.log | grep 'Moby test suite PASSED' + docker run --rm mobytest:build 2>&1 | tee test.log & + tail -f test.log | grep -m 1 -q 'Moby test suite ' + cat test.log | grep -q 'Moby test suite PASSED' .PHONY: clean