Skip to content

Commit 6059752

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "exercises/aggregates.sh: Only source openrc once"
2 parents 15e8525 + c0057ed commit 6059752

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

exercises/aggregates.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,13 @@ set -o xtrace
3131
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
3232
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
3333

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
3937

4038
# Import exercise configuration
4139
source $TOP_DIR/exerciserc
4240

43-
# Test as the admin user
44-
. $TOP_DIR/openrc admin admin
45-
4641
# If nova api is not enabled we exit with exitcode 55 so that
4742
# the exercise is skipped
4843
is_service_enabled n-api || exit 55

0 commit comments

Comments
 (0)