mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-06 09:21:28 +00:00
make sure test.log exists, and append, otherwise racy
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
3
Makefile
3
Makefile
@@ -24,7 +24,8 @@ qemu-arm: Dockerfile.qemu.armhf arm
|
|||||||
|
|
||||||
test: Dockerfile.test all
|
test: Dockerfile.test all
|
||||||
docker build -f Dockerfile.test -t mobytest:build .
|
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 '
|
tail -f test.log | 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'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user