From: Nathan Cutler Date: Fri, 3 May 2019 10:58:59 +0000 (+0200) Subject: pybind/tox: pass additional command line arguments through to tox X-Git-Tag: v14.2.2~119^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63c045d23d596af11509e77fb35f74511df54860;p=ceph.git pybind/tox: pass additional command line arguments through to tox Fixes: 9426f1f2045d0ae0f319530c3dc3a9240d838d07 Fixes: https://tracker.ceph.com/issues/39579 Signed-off-by: Nathan Cutler (cherry picked from commit d04b44816028079ee65564d8244fe2b56c49047e) --- diff --git a/src/pybind/mgr/ansible/run-tox.sh b/src/pybind/mgr/ansible/run-tox.sh index 5f215cd5fbcb..f2eecd85fe1c 100644 --- a/src/pybind/mgr/ansible/run-tox.sh +++ b/src/pybind/mgr/ansible/run-tox.sh @@ -35,7 +35,7 @@ fi # use bash string manipulation to strip off any trailing comma ENV_LIST=${ENV_LIST%,} -tox -c "${TOX_PATH}" -e "${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/dashboard/run-tox.sh b/src/pybind/mgr/dashboard/run-tox.sh index 3979a44836ee..27c585140540 100755 --- a/src/pybind/mgr/dashboard/run-tox.sh +++ b/src/pybind/mgr/dashboard/run-tox.sh @@ -43,7 +43,7 @@ fi # use bash string manipulation to strip off any trailing comma ENV_LIST=${ENV_LIST%,} -tox -c "${TOX_PATH}" -e "${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 index 590ca9bee428..9a2c400f797c 100644 --- a/src/pybind/mgr/insights/run-tox.sh +++ b/src/pybind/mgr/insights/run-tox.sh @@ -35,7 +35,7 @@ fi # use bash string manipulation to strip off any trailing comma ENV_LIST=${ENV_LIST%,} -tox -c "${TOX_PATH}" -e "${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 index d6e6f70e4c1b..6a1a34186419 100644 --- a/src/pybind/mgr/orchestrator_cli/run-tox.sh +++ b/src/pybind/mgr/orchestrator_cli/run-tox.sh @@ -40,7 +40,7 @@ ENV_LIST=$(echo "$ENV_LIST" | sed -e 's/,$//') # use bash string manipulation to strip off any trailing comma ENV_LIST=${ENV_LIST%,} -tox -c "${TOX_PATH}" -e "${ENV_LIST}" +tox -c "${TOX_PATH}" -e "${ENV_LIST}" "$@" TOX_STATUS="$?" test "$TOX_STATUS" -ne "0" && dump_envvars exit $TOX_STATUS