]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-prs: set a working directory for tox 571/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 29 Nov 2016 17:52:11 +0000 (11:52 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 29 Nov 2016 17:52:11 +0000 (11:52 -0600)
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 <aschoen@redhat.com>
ceph-ansible-prs/build/build

index 45f6bed495c32a8b7d0ba87d392071feb70da6b6..1473ebbf613abfaf7dcdee0b4f50092bf18ff41e 100644 (file)
@@ -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