]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
docker: Don't allocate tty unless DEBUG=1
authorFam Zheng <famz@redhat.com>
Fri, 13 Oct 2017 01:19:54 +0000 (09:19 +0800)
committerFam Zheng <famz@redhat.com>
Fri, 20 Oct 2017 06:28:50 +0000 (14:28 +0800)
The existence of tty in the container seems to urge gcc into colorizing
the errors, but the escape chars will clutter the report once turned
into email replies on patchew. Move -t to debug mode.

Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20171013011954.9975-1-famz@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/Makefile.include

index 6f9ea196a7b8b172599a2c3d345e602654ba6925..ab939f2bec7bd2c1ded300d26828dd974e953765 100644 (file)
@@ -134,10 +134,10 @@ docker-run: docker-qemu-src
                        "  COPYING $(EXECUTABLE) to $(IMAGE)"))
        $(call quiet-command,                                           \
                $(SRC_PATH)/tests/docker/docker.py run                  \
-                       $(if $(NOUSER),,-u $(shell id -u)) -t           \
+                       $(if $(NOUSER),,-u $(shell id -u))              \
                        --security-opt seccomp=unconfined               \
                        $(if $V,,--rm)                                  \
-                       $(if $(DEBUG),-i,)                              \
+                       $(if $(DEBUG),-ti,)                             \
                        $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=$(NETWORK)),--net=none) \
                        -e TARGET_LIST=$(TARGET_LIST)                   \
                        -e EXTRA_CONFIGURE_OPTS="$(EXTRA_CONFIGURE_OPTS)" \