Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Delta Between Two Patch Sets: tests/00-setup

Issue 26530043: Improve charm test venv creation.
Left Patch Set: Created 10 years, 4 months ago
Right Patch Set: Improve charm test venv creation. Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « revision ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # This file is part of the Juju GUI, which lets users view and manage Juju 3 # This file is part of the Juju GUI, which lets users view and manage Juju
4 # environments within a graphical interface (https://launchpad.net/juju-gui). 4 # environments within a graphical interface (https://launchpad.net/juju-gui).
5 # Copyright (C) 2012-2013 Canonical Ltd. 5 # Copyright (C) 2012-2013 Canonical Ltd.
6 # 6 #
7 # This program is free software: you can redistribute it and/or modify it under 7 # This program is free software: you can redistribute it and/or modify it under
8 # the terms of the GNU Affero General Public License version 3, as published by 8 # the terms of the GNU Affero General Public License version 3, as published by
9 # the Free Software Foundation. 9 # the Free Software Foundation.
10 # 10 #
(...skipping 14 matching lines...) Expand all
25 25
26 createvenv() { 26 createvenv() {
27 # Create a virtualenv if it does not exist, or it is older than requirements . 27 # Create a virtualenv if it does not exist, or it is older than requirements .
28 retcode=0 28 retcode=0
29 if [ ! -f "$ACTIVATE" -o "$TEST_REQUIREMENTS" -nt "$ACTIVATE" -o "$SERVER_RE QUIREMENTS" -nt "$ACTIVATE" ]; then 29 if [ ! -f "$ACTIVATE" -o "$TEST_REQUIREMENTS" -nt "$ACTIVATE" -o "$SERVER_RE QUIREMENTS" -nt "$ACTIVATE" ]; then
30 virtualenv --distribute $VENV 30 virtualenv --distribute $VENV
31 . $ACTIVATE && \ 31 . $ACTIVATE && \
32 yes w | env BZR_PLUGIN_PATH='-user' \ 32 yes w | env BZR_PLUGIN_PATH='-user' \
33 pip install --use-mirrors -r $TEST_REQUIREMENTS --find-links deps 33 pip install --use-mirrors -r $TEST_REQUIREMENTS --find-links deps
34 retcode=$? 34 retcode=$?
35 [ $retcode -eq 0 ] && touch $ACTIVATE || rm -f $ACTIVATE 35 [ $retcode -eq 0 ] && touch $ACTIVATE || touch $TEST_REQUIREMENTS
36 fi 36 fi
37 return $retcode 37 return $retcode
38 } 38 }
39 39
40 40
41 createvenv 41 createvenv
LEFTRIGHT
« revision ('k') | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b