From f0c513b3eb10b1505db8f489ba1f99c52d25aeeb Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 9 Dec 2016 10:10:42 -0800 Subject: [PATCH] Put nested virtualenv in $TMP Previously, this was hitting path-length limits in the gate. Change-Id: I52cc98c59b1155de7705e102102b164f25c8e845 --- swift3/test/functional/run_test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/swift3/test/functional/run_test.sh b/swift3/test/functional/run_test.sh index d1df9118..7927bfae 100755 --- a/swift3/test/functional/run_test.sh +++ b/swift3/test/functional/run_test.sh @@ -124,6 +124,7 @@ if [ -z "$CEPH_TESTS" ]; then coverage report coverage html else + set -e pushd ${TEST_DIR} git clone https://github.com/swiftstack/s3compat.git popd @@ -132,17 +133,18 @@ else # ceph/s3-tests has some rather ancient requirements, # so drop into another virtualenv - virtualenv venv - . venv/bin/activate + VENV="$(mktemp -d)" + virtualenv "$VENV" + . "$VENV/bin/activate" 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 ./bin/get_ceph_test_attributes.py ./bin/report.py --detailed output/ceph-s3.out.yaml \ --known-failures "${CONF_DIR}/ceph-known-failures-${AUTH}.yaml" \ - --detailedformat console output/ceph-s3.out.xml | \ + --detailedformat console output/ceph-s3.out.xml | \ tee "${LOG_DEST:-${TEST_DIR}/log}/ceph-s3-summary.log" # the report's exit code indicates NEW_FAILUREs / UNEXPECTED_PASSes @@ -150,6 +152,8 @@ else cp output/ceph-s3.out.xml "${LOG_DEST:-${TEST_DIR}/log}/ceph-s3-details.xml" popd + rm -rf "$VENV" + set +e fi # cleanup