2018-06-15 19:17:32 +00:00
|
|
|
#!/bin/bash -e
|
2018-06-15 18:21:33 +00:00
|
|
|
|
2018-06-15 19:40:50 +00:00
|
|
|
TAHOE_LAFS_TOX_ENVIRONMENT=$1
|
|
|
|
shift
|
|
|
|
|
|
|
|
TAHOE_LAFS_TOX_ARGS=$1
|
|
|
|
shift
|
|
|
|
|
2018-06-15 18:21:33 +00:00
|
|
|
# Set up the virtualenv as a non-root user so we can run the test suite as a
|
|
|
|
# non-root user. See below.
|
|
|
|
sudo --set-home -u nobody virtualenv --python python2.7 /tmp/tests
|
|
|
|
sudo --set-home -u nobody /tmp/tests/bin/pip install tox codecov
|
|
|
|
# Get everything installed in it, too.
|
|
|
|
sudo --set-home -u nobody /tmp/tests/bin/tox -c /tmp/project/tox.ini --workdir /tmp --notest -e "${TAHOE_LAFS_TOX_ENVIRONMENT}" ${TAHOE_LAFS_TOX_ARGS}
|