Put nested virtualenv in $TMP

Previously, this was hitting path-length limits in the gate.

Change-Id: I52cc98c59b1155de7705e102102b164f25c8e845
This commit is contained in:
Tim Burke
2016-12-09 10:10:42 -08:00
parent 0982119899
commit f0c513b3eb

View File

@@ -124,6 +124,7 @@ if [ -z "$CEPH_TESTS" ]; then
coverage report coverage report
coverage html coverage html
else else
set -e
pushd ${TEST_DIR} pushd ${TEST_DIR}
git clone https://github.com/swiftstack/s3compat.git git clone https://github.com/swiftstack/s3compat.git
popd popd
@@ -132,11 +133,12 @@ else
# ceph/s3-tests has some rather ancient requirements, # ceph/s3-tests has some rather ancient requirements,
# so drop into another virtualenv # so drop into another virtualenv
virtualenv venv VENV="$(mktemp -d)"
. venv/bin/activate virtualenv "$VENV"
. "$VENV/bin/activate"
pip install -r requirements.txt -r ceph-tests/requirements.txt pip install -r requirements.txt -r ceph-tests/requirements.txt
S3TEST_CONF="${CONF_DIR}/ceph-s3.conf" ./bin/run_ceph_tests.py S3TEST_CONF="${CONF_DIR}/ceph-s3.conf" ./bin/run_ceph_tests.py || true
# show report # show report
./bin/get_ceph_test_attributes.py ./bin/get_ceph_test_attributes.py
@@ -150,6 +152,8 @@ else
cp output/ceph-s3.out.xml "${LOG_DEST:-${TEST_DIR}/log}/ceph-s3-details.xml" cp output/ceph-s3.out.xml "${LOG_DEST:-${TEST_DIR}/log}/ceph-s3-details.xml"
popd popd
rm -rf "$VENV"
set +e
fi fi
# cleanup # cleanup