From: Andrew Schoen Date: Tue, 29 Nov 2016 17:52:11 +0000 (-0600) Subject: ceph-ansible-prs: set a working directory for tox X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=05a2c04742a08bba4b21640a6f94e825a7809bcf;p=ceph-build.git ceph-ansible-prs: set a working directory for tox We need to set a working directory for tox because the default for some scenarios are too long and the job fails to call pip because it exceeds the char limit. Signed-off-by: Andrew Schoen --- diff --git a/ceph-ansible-prs/build/build b/ceph-ansible-prs/build/build index 45f6bed4..1473ebbf 100644 --- a/ceph-ansible-prs/build/build +++ b/ceph-ansible-prs/build/build @@ -7,7 +7,8 @@ install_python_packages "pkgs[@]" # XXX this might not be needed source $VENV/activate +WORKDIR=$(mktemp -td tox.XXXXXXXXXX) # the $SCENARIO var is injected by the job template. It maps # to an actual, defined, tox environment -$VENV/tox -rv -e=$SCENARIO -- --provider=libvirt +$VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt