]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils: change workdir for tox (ceph-ansible) 1237/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Jan 2019 15:45:05 +0000 (16:45 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Jan 2019 15:57:52 +0000 (16:57 +0100)
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 <gabrioux@redhat.com>
scripts/build_utils.sh

index 04977905b4ae97baebafe6f9809b3d3f7fcb006b..c464c1495a348cefcb1c351060608dd96824c4a7 100644 (file)
@@ -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
 }