From: Loic Dachary Date: Tue, 7 Apr 2015 14:07:40 +0000 (+0200) Subject: tests: allow multiple users of docker-tests.sh X-Git-Tag: v9.0.0~15^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=def9862be3acedfe465c6acdc284c4984aa23a2c;p=ceph.git tests: allow multiple users of docker-tests.sh The docker image created by docker-tests.sh for a given operating system is parameterized with the user name. If two users on the same machine try to use the same image, they will compete and fail with an error like: ... user get supplementary groups Unable to find user ... Add the $USER to the image name to reflect the fact that they contain an account for this user. Signed-off-by: Loic Dachary --- diff --git a/src/test/docker-test-helper.sh b/src/test/docker-test-helper.sh index 0b914ae39e6..7555e1cba91 100755 --- a/src/test/docker-test-helper.sh +++ b/src/test/docker-test-helper.sh @@ -18,7 +18,7 @@ function get_image_name() { local os_type=$1 local os_version=$2 - echo ceph-$os_type-$os_version + echo ceph-$os_type-$os_version-$USER } function setup_container() {