diff options
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-x | tests/run.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/run.sh b/tests/run.sh index 87411f97..2b888795 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -138,12 +138,13 @@ register_image() { } create_test_user() { - openstack user list | grep -q " $DOCTOR_USER " || { - openstack user create "$DOCTOR_USER" --password "$DOCTOR_PW" - } openstack project list | grep -q " $DOCTOR_PROJECT " || { openstack project create "$DOCTOR_PROJECT" } + openstack user list | grep -q " $DOCTOR_USER " || { + openstack user create "$DOCTOR_USER" --password "$DOCTOR_PW" \ + --project "$DOCTOR_PROJECT" + } openstack user role list "$DOCTOR_USER" --project "$DOCTOR_PROJECT" \ | grep -q " $DOCTOR_ROLE " || { openstack role add "$DOCTOR_ROLE" --user "$DOCTOR_USER" \ |