Only source openrc once, and remove the unnecessary re-sourcing of
"functions" which is done by openrc.
Change-Id: I61c87a0742de274d47753a0b216c56d96344d161
| ... | ... |
@@ -31,18 +31,13 @@ set -o xtrace |
| 31 | 31 |
EXERCISE_DIR=$(cd $(dirname "$0") && pwd) |
| 32 | 32 |
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd) |
| 33 | 33 |
|
| 34 |
-# Import common functions |
|
| 35 |
-source $TOP_DIR/functions |
|
| 36 |
- |
|
| 37 |
-# Import configuration |
|
| 38 |
-source $TOP_DIR/openrc |
|
| 34 |
+# Test as the admin user |
|
| 35 |
+# note this imports stackrc/functions, etc |
|
| 36 |
+. $TOP_DIR/openrc admin admin |
|
| 39 | 37 |
|
| 40 | 38 |
# Import exercise configuration |
| 41 | 39 |
source $TOP_DIR/exerciserc |
| 42 | 40 |
|
| 43 |
-# Test as the admin user |
|
| 44 |
-. $TOP_DIR/openrc admin admin |
|
| 45 |
- |
|
| 46 | 41 |
# If nova api is not enabled we exit with exitcode 55 so that |
| 47 | 42 |
# the exercise is skipped |
| 48 | 43 |
is_service_enabled n-api || exit 55 |