From 2ce0068fbece0ecb433620943f60cfeed236ffbb Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 23 Jan 2019 16:45:05 +0100 Subject: [PATCH] build_utils: change workdir for tox (ceph-ansible) This commit reverts the previous commit and simply change the working directory when running tox, so the shebangs are much more shorter (<127 char). Signed-off-by: Guillaume Abrioux --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 04977905..c464c149 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -751,7 +751,7 @@ function build_job_name() { } # shellcheck disable=SC2116 -if ! eval "$(echo "${TOX_RUN_ENV[@]}")" "$VENV"/tox -rv -e="$(build_job_name $RELEASE $DISTRIBUTION $DEPLOYMENT $SCENARIO)" -- --provider=libvirt; then echo "ERROR: Job didn't complete successfully or got stuck for more than 3h." +if ! eval "$(echo "${TOX_RUN_ENV[@]}")" "$VENV"/tox --workdir="$TEMPVENV" -v -e="$(build_job_name $RELEASE $DISTRIBUTION $DEPLOYMENT $SCENARIO)" -- --provider=libvirt; then echo "ERROR: Job didn't complete successfully or got stuck for more than 3h." exit 1 fi } -- 2.39.5