Fix minor typos in chinese spelling

Change-Id: I531edc8d3d157417c8a4a83685af76c6a610131d
This commit is contained in:
wangqi 2018-02-27 02:50:01 +00:00
parent e1e47548bf
commit 462561c104
4 changed files with 11 additions and 11 deletions

View File

@ -104,15 +104,15 @@ function start_qinling {
} }
function stop_qingling { function stop_qinling {
local serv local serv
for serv in qinling-api qingling-engine; do for serv in qinling-api qinling-engine; do
stop_process $serv stop_process $serv
done done
} }
function cleanup_qingling { function cleanup_qinling {
sudo rm -rf $QINLING_AUTH_CACHE_DIR sudo rm -rf $QINLING_AUTH_CACHE_DIR
sudo rm -rf $QINLING_CONF_DIR sudo rm -rf $QINLING_CONF_DIR
} }
@ -147,13 +147,13 @@ if is_service_enabled qinling; then
fi fi
if [[ "$1" == "unstack" ]]; then if [[ "$1" == "unstack" ]]; then
echo_summary "Shutting down qingling" echo_summary "Shutting down qinling"
stop_qingling stop_qinling
fi fi
if [[ "$1" == "clean" ]]; then if [[ "$1" == "clean" ]]; then
echo_summary "Cleaning qingling" echo_summary "Cleaning qinling"
cleanup_qingling cleanup_qinling
fi fi
fi fi

View File

@ -23,7 +23,7 @@ service_option = cfg.BoolOpt(
) )
qingling_group = cfg.OptGroup(name="qingling", title="Qinling Service Options") qinling_group = cfg.OptGroup(name="qinling", title="Qinling Service Options")
QinlingGroup = [ QinlingGroup = [
cfg.StrOpt("region", cfg.StrOpt("region",

View File

@ -36,13 +36,13 @@ class QinlingTempestPlugin(plugins.TempestPlugin):
qinling_config.service_option, group='service_available' qinling_config.service_option, group='service_available'
) )
conf.register_group(qinling_config.qingling_group) conf.register_group(qinling_config.qinling_group)
conf.register_opts(qinling_config.QinlingGroup, group='qinling') conf.register_opts(qinling_config.QinlingGroup, group='qinling')
def get_opt_lists(self): def get_opt_lists(self):
return [ return [
('service_available', [qinling_config.service_option]), ('service_available', [qinling_config.service_option]),
(qinling_config.qingling_group.name, qinling_config.QinlingGroup) (qinling_config.qinling_group.name, qinling_config.QinlingGroup)
] ]
def get_service_clients(self): def get_service_clients(self):

View File

@ -36,7 +36,7 @@ git checkout -
[[ -n $uncommitted ]] && git stash pop > /dev/null [[ -n $uncommitted ]] && git stash pop > /dev/null
# Generate and save coverage report # Generate and save coverage report
current_report=$(mktemp -t qingling_coverageXXXXXXX) current_report=$(mktemp -t qinling_coverageXXXXXXX)
find . -type f -name "*.py[c|o]" -delete && stestr run "$TESTR_ARGS" && coverage combine && coverage html -d cover find . -type f -name "*.py[c|o]" -delete && stestr run "$TESTR_ARGS" && coverage combine && coverage html -d cover
coverage report --ignore-errors > $current_report coverage report --ignore-errors > $current_report
current_missing=$(awk 'END { print $3 }' $current_report) current_missing=$(awk 'END { print $3 }' $current_report)