]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: allow multiple users of docker-tests.sh
authorLoic Dachary <ldachary@redhat.com>
Tue, 7 Apr 2015 14:07:40 +0000 (16:07 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 7 Apr 2015 14:07:40 +0000 (16:07 +0200)
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 <ldachary@redhat.com>
src/test/docker-test-helper.sh

index 0b914ae39e6d78f7caf9f0f9679b6c99e2a0b284..7555e1cba91fe36849c7965ee113d52855cc3222 100755 (executable)
@@ -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() {