From: Li Peng Date: Fri, 22 Apr 2016 07:15:09 +0000 (+0800) Subject: Fix typos, change prefered to preferred X-Git-Tag: v11.0.0~877^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=88ae8c38d0725d4188289b11cf7adf6b4f8b462b;p=ceph.git Fix typos, change prefered to preferred --- diff --git a/qa/workunits/ceph-disk/ceph-disk-no-lockbox b/qa/workunits/ceph-disk/ceph-disk-no-lockbox index a9adc3195e5c..aa730200edca 100755 --- a/qa/workunits/ceph-disk/ceph-disk-no-lockbox +++ b/qa/workunits/ceph-disk/ceph-disk-no-lockbox @@ -395,7 +395,7 @@ def command(arguments, **kwargs): executable exists and raising a helpful error message if it does not. - .. note:: This should be the prefered way of calling ``subprocess.Popen`` + .. note:: This should be the preferred way of calling ``subprocess.Popen`` since it provides the caller with the safety net of making sure that executables *will* be found and will error nicely otherwise. @@ -418,7 +418,7 @@ def command_check_call(arguments): Safely execute a ``subprocess.check_call`` call making sure that the executable exists and raising a helpful error message if it does not. - .. note:: This should be the prefered way of calling + .. note:: This should be the preferred way of calling ``subprocess.check_call`` since it provides the caller with the safety net of making sure that executables *will* be found and will error nicely otherwise. diff --git a/qa/workunits/ceph-helpers.sh b/qa/workunits/ceph-helpers.sh index 0eeb2406876d..62428d221217 100755 --- a/qa/workunits/ceph-helpers.sh +++ b/qa/workunits/ceph-helpers.sh @@ -1446,8 +1446,8 @@ function main() { shopt -s -o xtrace PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}: ' - export PATH=${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv/bin:${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv/bin:.:$PATH # make sure program from sources are prefered - #export PATH=$CEPH_ROOT/src/ceph-disk/virtualenv/bin:$CEPH_ROOT/src/ceph-detect-init/virtualenv/bin:.:$PATH # make sure program from sources are prefered + export PATH=${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv/bin:${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv/bin:.:$PATH # make sure program from sources are preferred + #export PATH=$CEPH_ROOT/src/ceph-disk/virtualenv/bin:$CEPH_ROOT/src/ceph-detect-init/virtualenv/bin:.:$PATH # make sure program from sources are preferred export CEPH_CONF=/dev/null unset CEPH_ARGS @@ -1469,8 +1469,8 @@ function run_tests() { shopt -s -o xtrace PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}: ' - export PATH=${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv/bin:${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv/bin:.:$PATH # make sure program from sources are prefered - #export PATH=$CEPH_ROOT/src/ceph-disk/virtualenv/bin:$CEPH_ROOT/src/ceph-detect-init/virtualenv/bin:.:$PATH # make sure program from sources are prefered + export PATH=${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv/bin:${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv/bin:.:$PATH # make sure program from sources are preferred + #export PATH=$CEPH_ROOT/src/ceph-disk/virtualenv/bin:$CEPH_ROOT/src/ceph-detect-init/virtualenv/bin:.:$PATH # make sure program from sources are preferred export CEPH_MON="127.0.0.1:7109" # git grep '\<7109\>' : there must be only one export CEPH_ARGS diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index 45e9bb2163a3..777014f84448 100755 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -406,7 +406,7 @@ def command(arguments, **kwargs): executable exists and raising a helpful error message if it does not. - .. note:: This should be the prefered way of calling ``subprocess.Popen`` + .. note:: This should be the preferred way of calling ``subprocess.Popen`` since it provides the caller with the safety net of making sure that executables *will* be found and will error nicely otherwise. @@ -429,7 +429,7 @@ def command_check_call(arguments): Safely execute a ``subprocess.check_call`` call making sure that the executable exists and raising a helpful error message if it does not. - .. note:: This should be the prefered way of calling + .. note:: This should be the preferred way of calling ``subprocess.check_call`` since it provides the caller with the safety net of making sure that executables *will* be found and will error nicely otherwise. diff --git a/src/ceph-disk/tests/ceph-disk.sh b/src/ceph-disk/tests/ceph-disk.sh index 479e319b387f..b507a5930392 100644 --- a/src/ceph-disk/tests/ceph-disk.sh +++ b/src/ceph-disk/tests/ceph-disk.sh @@ -35,7 +35,7 @@ function teardown_btrfs() { PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}: ' -export PATH=..:.:$PATH # make sure program from sources are prefered +export PATH=..:.:$PATH # make sure program from sources are preferred export PATH=../ceph-detect-init/virtualenv/bin:$PATH export PATH=virtualenv/bin:$PATH DIR=test-ceph-disk