From b9532e2a898c8df206dc423eb720110bd7bf3dfe Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 29 Jul 2016 16:33:01 +0100 Subject: [PATCH] make sure test.log exists, and append, otherwise racy Signed-off-by: Justin Cormack --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4c00f2f57..0fdf8fd31 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,8 @@ qemu-arm: Dockerfile.qemu.armhf arm test: Dockerfile.test all docker build -f Dockerfile.test -t mobytest:build . - docker run --rm mobytest:build 2>&1 | tee test.log & + touch test.log + docker run --rm mobytest:build 2>&1 | tee -a test.log & tail -f test.log | grep -m 1 -q 'Moby test suite ' cat test.log | grep -q 'Moby test suite PASSED'