diff options
Diffstat (limited to 'tests')
-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 731d2ac6..01adf689 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -139,12 +139,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" \ |