Try avoiding some of the sudo'ing

This commit is contained in:
Jean-Paul Calderone 2019-04-04 12:52:35 -04:00
parent 2896370880
commit 4d15504e4a
2 changed files with 7 additions and 12 deletions

View File

@ -60,6 +60,7 @@ jobs:
debian-9: &DEBIAN debian-9: &DEBIAN
docker: docker:
- image: "tahoelafsci/debian:9" - image: "tahoelafsci/debian:9"
user: "nobody"
environment: &UTF_8_ENVIRONMENT environment: &UTF_8_ENVIRONMENT
# Tell Hypothesis which configuration we want it to use. # Tell Hypothesis which configuration we want it to use.
@ -84,14 +85,10 @@ jobs:
steps: steps:
- "checkout" - "checkout"
- run:
name: "Fix permissions"
command: |
chown --recursive nobody:nogroup /tmp/project
- run: &SETUP_VIRTUALENV - run: &SETUP_VIRTUALENV
name: "Setup virtualenv" name: "Setup virtualenv"
command: | command: |
sudo --set-home -u nobody /tmp/project/.circleci/setup-virtualenv.sh \ /tmp/project/.circleci/setup-virtualenv.sh \
"/tmp/venv" \ "/tmp/venv" \
"/tmp/project" \ "/tmp/project" \
"${WHEELHOUSE_PATH}" \ "${WHEELHOUSE_PATH}" \

View File

@ -47,12 +47,10 @@ fi
# #
# Send the output directly to a file because transporting the binary subunit2 # Send the output directly to a file because transporting the binary subunit2
# via tox and then scraping it out is hideous and failure prone. # via tox and then scraping it out is hideous and failure prone.
sudo \ export SUBUNITREPORTER_OUTPUT_PATH="${SUBUNIT2}"
SUBUNITREPORTER_OUTPUT_PATH="${SUBUNIT2}" \ export TAHOE_LAFS_TRIAL_ARGS="--reporter=subunitv2-file --rterrors"
TAHOE_LAFS_TRIAL_ARGS="--reporter=subunitv2-file --rterrors" \ export PIP_NO_INDEX="1"
PIP_NO_INDEX="1" \
--set-home \
--user nobody \
${BOOTSTRAP_VENV}/bin/tox \ ${BOOTSTRAP_VENV}/bin/tox \
-c ${PROJECT_ROOT}/tox.ini \ -c ${PROJECT_ROOT}/tox.ini \
--workdir /tmp/tahoe-lafs.tox \ --workdir /tmp/tahoe-lafs.tox \