diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-15 16:27:42 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-15 16:27:42 +0200 |
commit | e12abf18b5f8438c55ff6e8f7e89476dc11438f7 (patch) | |
tree | 8da420cfe2347f43067038145c9dbeeac3b8117e | |
parent | 73c68dbe01bb278e0dc294400afb3e538b363168 (diff) | |
download | gitlab-0.9.tar.gz |
functional_test.sh: use a venv0.9
-rwxr-xr-x | tools/functional_tests.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/functional_tests.sh b/tools/functional_tests.sh index 802c5c2..24124ce 100755 --- a/tools/functional_tests.sh +++ b/tools/functional_tests.sh @@ -18,6 +18,8 @@ cleanup() { rm -f /tmp/python-gitlab.cfg docker kill gitlab-test >/dev/null 2>&1 docker rm gitlab-test >/dev/null 2>&1 + deactivate || true + rm -rf $VENV } trap cleanup EXIT @@ -27,6 +29,12 @@ LOGIN='root' PASSWORD='5iveL!fe' CONFIG=/tmp/python-gitlab.cfg GITLAB="gitlab --config-file $CONFIG" +VENV=$(pwd)/.venv + +virtualenv $VENV +. $VENV/bin/activate +pip install -rrequirements.txt +pip install -e . GREEN='\033[0;32m' NC='\033[0m' @@ -77,11 +85,11 @@ USER_ID=$($GITLAB user create --email fake@email.com --username user1 --name "Us $OK echo -n "Testing verbose output... " -$GITLAB user list | grep -q avatar-url +$GITLAB -v user list | grep -q avatar-url $OK echo -n "Testing CLI args not in output... " -$GITLAB user list | grep -v config-file +$GITLAB -v user list | grep -qv config-file $OK echo -n "Testing adding member to a project... " |