hide any messages from tee about short writes when pipe aborted

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-08-09 17:40:32 +01:00
parent 82c391f47f
commit dde7f73985

View File

@ -26,7 +26,7 @@ test: Dockerfile.test all
docker build -f Dockerfile.test -t mobytest:build .
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 '
tail -f test.log 2>/dev/null | grep -m 1 -q 'Moby test suite '
cat test.log | grep -q 'Moby test suite PASSED'
.PHONY: clean