Merge "Fix to use . to source script files"
This commit is contained in:
commit
9df4dcdc9b
@ -427,13 +427,13 @@ function tacker_register_default_vim {
|
||||
$TOP_DIR/tools/create_userrc.sh -P -u $DEFAULT_VIM_USER -C $DEFAULT_VIM_PROJECT_NAME -p $DEFAULT_VIM_PASSWORD
|
||||
echo "Switch environment openrc:"
|
||||
echo $(cat $TOP_DIR/accrc/$DEFAULT_VIM_PROJECT_NAME/$DEFAULT_VIM_USER)
|
||||
source $TOP_DIR/accrc/$DEFAULT_VIM_PROJECT_NAME/$DEFAULT_VIM_USER
|
||||
. $TOP_DIR/accrc/$DEFAULT_VIM_PROJECT_NAME/$DEFAULT_VIM_USER
|
||||
|
||||
default_vim_id=$(tacker vim-register --is-default --description "Default VIM" --config-file $VIM_CONFIG_FILE $DEFAULT_VIM_NAME -c id | grep id | awk '{print $4}')
|
||||
echo "Default VIM registration done as $default_vim_id at $KEYSTONE_SERVICE_URI."
|
||||
echo "Switch back to old environment openrc:"
|
||||
echo $(cat $TOP_DIR/accrc/$old_project/$old_user)
|
||||
source $TOP_DIR/accrc/$old_project/$old_user
|
||||
. $TOP_DIR/accrc/$old_project/$old_user
|
||||
|
||||
echo "Update tacker/tests/etc/samples/local-vim.yaml for functional testing"
|
||||
functional_vim_file="$TACKER_DIR/tacker/tests/etc/samples/local-vim.yaml"
|
||||
|
@ -13,10 +13,10 @@
|
||||
TOP_DIR=$(cd $(dirname "$0") && pwd)
|
||||
|
||||
# Import common functions
|
||||
source $TOP_DIR/functions
|
||||
. $TOP_DIR/functions
|
||||
|
||||
# Use openrc + stackrc + localrc for settings
|
||||
source $TOP_DIR/stackrc
|
||||
. $TOP_DIR/stackrc
|
||||
|
||||
# Destination path for installation ``DEST``
|
||||
DEST=${DEST:-/opt/stack}
|
||||
@ -38,7 +38,7 @@ if is_service_enabled mysql; then
|
||||
exit_distro_not_supported "mysql configuration"
|
||||
fi
|
||||
|
||||
sudo bash -c "source $TOP_DIR/functions && \
|
||||
sudo bash -c ". $TOP_DIR/functions && \
|
||||
iniset $my_conf mysqld max_connections 1024 && \
|
||||
iniset $my_conf mysqld query_cache_type OFF && \
|
||||
iniset $my_conf mysqld query_cache_size 0"
|
||||
|
@ -5,7 +5,7 @@ XTRACE=$(set +o | grep xtrace)
|
||||
set -o xtrace
|
||||
|
||||
echo_summary "tacker's plugin.sh was called..."
|
||||
source $DEST/tacker/devstack/lib/tacker
|
||||
. $DEST/tacker/devstack/lib/tacker
|
||||
(set -o posix; set)
|
||||
|
||||
# check for service enabled
|
||||
|
@ -42,7 +42,7 @@ Create a vim and verify it works:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ source openrc-admin.sh
|
||||
$ . openrc-admin.sh
|
||||
$ openstack project create test
|
||||
$ openstack user create --password a test
|
||||
$ openstack role add --project test --user test admin
|
||||
|
@ -53,14 +53,14 @@ function generate_testr_results {
|
||||
fi
|
||||
}
|
||||
|
||||
source ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
|
||||
. ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
|
||||
|
||||
if [[ "$venv" == dsvm-functional* ]]
|
||||
then
|
||||
owner=stack
|
||||
sudo_env=
|
||||
log_dir="/tmp/${venv}-logs"
|
||||
source $DEVSTACK_DIR/openrc admin admin
|
||||
. $DEVSTACK_DIR/openrc admin admin
|
||||
fixup_quota
|
||||
add_key
|
||||
add_secgrp
|
||||
|
@ -12,8 +12,8 @@ if [ ! -f ${DEVSTACK_DIR}/openrc ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source $DEVSTACK_DIR/openrc admin admin
|
||||
source ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
|
||||
. $DEVSTACK_DIR/openrc admin admin
|
||||
. ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
|
||||
|
||||
fixup_quota
|
||||
add_key_if_not_exist
|
||||
|
@ -17,4 +17,4 @@
|
||||
|
||||
TOOLS=`dirname $0`
|
||||
VENV=$TOOLS/../.venv
|
||||
source $VENV/bin/activate && "$@"
|
||||
. $VENV/bin/activate && "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user