From: Fam Zheng Date: Fri, 5 May 2017 03:23:36 +0000 (+0800) Subject: docker: Run tests with current user X-Git-Tag: v2.10.0-rc0~123^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9f65a4af0ea8162d2339a979350f891942e3037;p=thirdparty%2Fqemu.git docker: Run tests with current user We've used --add-current-user to create a user in the image, use it to run tests, because root has too much priviledge, and can surprise test cases. Signed-off-by: Fam Zheng Message-Id: <20170505032340.26467-2-famz@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Reviewed-by: Paolo Bonzini Signed-off-by: Fam Zheng --- diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 03eda37bf41..0ed8c3d3235 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -126,7 +126,7 @@ docker-run: docker-qemu-src " COPYING $(EXECUTABLE) to $(IMAGE)")) $(call quiet-command, \ $(SRC_PATH)/tests/docker/docker.py run \ - -t \ + $(if $(NOUSER),,-u $(shell id -u)) -t \ $(if $V,,--rm) \ $(if $(DEBUG),-i,--net=none) \ -e TARGET_LIST=$(TARGET_LIST) \