From 05a2c04742a08bba4b21640a6f94e825a7809bcf Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 29 Nov 2016 11:52:11 -0600 Subject: [PATCH] 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 --- ceph-ansible-prs/build/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3