support/testing/tests/package/test_docker-compose: quiet overly verbose output

Docker compose up outputs terminal control characters intended for
interactive output viewing.

Wget similarly can use the -q option to produce quieter logs.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Christian Stewart 2022-10-31 16:27:51 -07:00 committed by Thomas Petazzoni
parent 685d8a0318
commit f486521b27

View File

@ -40,10 +40,10 @@ class TestDockerCompose(infra.basetest.BRTest):
def docker_compose_test(self):
# will download container if not available, which may take some time
self.assertRunOk('docker compose up -d', 120)
self.assertRunOk('docker compose up -d --quiet-pull', 120)
# container may take some time to start
self.assertRunOk('while ! docker inspect root-busybox-1 2>&1 >/dev/null; do sleep 1; done', 120)
self.assertRunOk('wget -O /tmp/busybox http://127.0.0.1/busybox', 120)
self.assertRunOk('wget -q -O /tmp/busybox http://127.0.0.1/busybox', 120)
self.assertRunOk('cmp /bin/busybox /tmp/busybox', 120)
def test_run(self):