Merge pull request #400 from justincormack/testerr

hide any messages from tee about short writes when pipe aborted
This commit is contained in:
Justin Cormack 2016-08-09 22:42:19 +01:00 committed by GitHub
commit fee67f0c85

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