]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src: remove unused run-tox.sh
authorKefu Chai <kchai@redhat.com>
Fri, 2 Aug 2019 04:40:02 +0000 (12:40 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Aug 2019 10:47:08 +0000 (18:47 +0800)
they are not used anymore after b9c9f74f

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/ansible/run-tox.sh [deleted file]
src/pybind/mgr/insights/run-tox.sh [deleted file]
src/pybind/mgr/orchestrator_cli/run-tox.sh [deleted file]
src/tools/cephfs/run-tox.sh [deleted file]

diff --git a/src/pybind/mgr/ansible/run-tox.sh b/src/pybind/mgr/ansible/run-tox.sh
deleted file mode 100644 (file)
index fd6da24..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env bash
-
-function dump_envvars {
-  echo "WITH_PYTHON2: ->$WITH_PYTHON2<-"
-  echo "WITH_PYTHON3: ->$WITH_PYTHON3<-"
-  echo "TOX_PATH: ->$TOX_PATH<-"
-  echo "ENV_LIST: ->$ENV_LIST<-"
-}
-
-# run from ./ or from ../
-: ${MGR_ANSIBLE_VIRTUALENV:=$CEPH_BUILD_DIR/mgr-ansible-virtualenv}
-: ${WITH_PYTHON2:=ON}
-: ${WITH_PYTHON3:=3}
-: ${CEPH_BUILD_DIR:=$PWD/.tox}
-test -d ansible && cd ansible
-
-if [ -e tox.ini ]; then
-    TOX_PATH=$(readlink -f tox.ini)
-else
-    TOX_PATH=$(readlink -f $(dirname $0)/tox.ini)
-fi
-
-# tox.ini will take care of this.
-unset PYTHONPATH
-export CEPH_BUILD_DIR=$CEPH_BUILD_DIR
-
-source ${MGR_ANSIBLE_VIRTUALENV}/bin/activate
-
-if [ "$WITH_PYTHON2" = "ON" ]; then
-  ENV_LIST+="py27,"
-fi
-# WITH_PYTHON3 might be set to "ON" or to the python3 RPM version number
-# prevailing on the system - e.g. "3", "36"
-if [[ "$WITH_PYTHON3" =~ (^3|^ON) ]]; then
-  ENV_LIST+="py3,"
-fi
-# use bash string manipulation to strip off any trailing comma
-ENV_LIST=${ENV_LIST%,}
-
-tox -c "${TOX_PATH}" -e "${ENV_LIST}" "$@"
-TOX_STATUS="$?"
-test "$TOX_STATUS" -ne "0" && dump_envvars
-exit $TOX_STATUS
diff --git a/src/pybind/mgr/insights/run-tox.sh b/src/pybind/mgr/insights/run-tox.sh
deleted file mode 100644 (file)
index 7d62145..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env bash
-
-function dump_envvars {
-  echo "WITH_PYTHON2: ->$WITH_PYTHON2<-"
-  echo "WITH_PYTHON3: ->$WITH_PYTHON3<-"
-  echo "TOX_PATH: ->$TOX_PATH<-"
-  echo "ENV_LIST: ->$ENV_LIST<-"
-}
-
-# run from ./ or from ../
-: ${MGR_INSIGHTS_VIRTUALENV:=$CEPH_BUILD_DIR/mgr-insights-virtualenv}
-: ${WITH_PYTHON2:=ON}
-: ${WITH_PYTHON3:=3}
-: ${CEPH_BUILD_DIR:=$PWD/.tox}
-test -d insights && cd insights
-
-if [ -e tox.ini ]; then
-    TOX_PATH=$(readlink -f tox.ini)
-else
-    TOX_PATH=$(readlink -f $(dirname $0)/tox.ini)
-fi
-
-# tox.ini will take care of this.
-unset PYTHONPATH
-export CEPH_BUILD_DIR=$CEPH_BUILD_DIR
-
-source ${MGR_INSIGHTS_VIRTUALENV}/bin/activate
-
-if [ "$WITH_PYTHON2" = "ON" ]; then
-  ENV_LIST+="py27,"
-fi
-# WITH_PYTHON3 might be set to "ON" or to the python3 RPM version number
-# prevailing on the system - e.g. "3", "36"
-if [[ "$WITH_PYTHON3" =~ (^3|^ON) ]]; then
-  ENV_LIST+="py3,"
-fi
-# use bash string manipulation to strip off any trailing comma
-ENV_LIST=${ENV_LIST%,}
-
-tox -c "${TOX_PATH}" -e "${ENV_LIST}" "$@"
-TOX_STATUS="$?"
-test "$TOX_STATUS" -ne "0" && dump_envvars
-exit $TOX_STATUS
diff --git a/src/pybind/mgr/orchestrator_cli/run-tox.sh b/src/pybind/mgr/orchestrator_cli/run-tox.sh
deleted file mode 100644 (file)
index 32b24f5..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env bash
-
-function dump_envvars {
-  echo "WITH_PYTHON2: ->$WITH_PYTHON2<-"
-  echo "WITH_PYTHON3: ->$WITH_PYTHON3<-"
-  echo "TOX_PATH: ->$TOX_PATH<-"
-  echo "ENV_LIST: ->$ENV_LIST<-"
-}
-
-# run from ./ or from ../
-: ${MGR_ORCHESTRATOR_CLI_VIRTUALENV:=$CEPH_BUILD_DIR/mgr-orchestrator_cli-virtualenv}
-: ${WITH_PYTHON2:=ON}
-: ${WITH_PYTHON3:=3}
-: ${CEPH_BUILD_DIR:=$PWD/.tox}
-test -d orchestrator_cli && cd orchestrator_cli
-
-if [ -e tox.ini ]; then
-    TOX_PATH=$(readlink -f tox.ini)
-else
-    TOX_PATH=$(readlink -f $(dirname $0)/tox.ini)
-fi
-
-# tox.ini will take care of this.
-unset PYTHONPATH
-export CEPH_BUILD_DIR=$CEPH_BUILD_DIR
-
-if [ -f ${MGR_ORCHESTRATOR_CLI_VIRTUALENV}/bin/activate ]
-then
-  source ${MGR_ORCHESTRATOR_CLI_VIRTUALENV}/bin/activate
-fi
-
-if [ "$WITH_PYTHON2" = "ON" ]; then
-  ENV_LIST+="py27,"
-fi
-# WITH_PYTHON3 might be set to "ON" or to the python3 RPM version number
-# prevailing on the system - e.g. "3", "36"
-if [[ "$WITH_PYTHON3" =~ (^3|^ON) ]]; then
-  ENV_LIST+="py3,"
-fi
-# use bash string manipulation to strip off any trailing comma
-ENV_LIST=${ENV_LIST%,}
-
-tox -c "${TOX_PATH}" -e "${ENV_LIST}" "$@"
-TOX_STATUS="$?"
-test "$TOX_STATUS" -ne "0" && dump_envvars
-exit $TOX_STATUS
diff --git a/src/tools/cephfs/run-tox.sh b/src/tools/cephfs/run-tox.sh
deleted file mode 100644 (file)
index 070865d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env bash
-TOX_PATH=${CEPH_ROOT}/src/tools/cephfs/tox.ini
-CEPHFS=${CEPH_ROOT}/src/tools/cephfs
-
-tox -c ${TOX_PATH} -e flake8
-TOX_STATUS="$?"
-test "$TOX_STATUS" -ne "0"
-rm -rf ${CEPHFS}/.tox/
-rm -rf ${CEPHFS}/cephfs_shell.egg-info/
-exit $TOX_STATUS