Browse code

Merge "exercises/aggregates.sh: Only source openrc once"

Jenkins authored on 2015/08/28 10:45:10
Showing 1 changed files
... ...
@@ -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