瀏覽代碼

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>
Christian Stewart 2 年之前
父節點
當前提交
f486521b27
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      support/testing/tests/package/test_docker_compose.py

+ 2 - 2
support/testing/tests/package/test_docker_compose.py

@@ -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):