Bug 840636 - Update Mochitest script. r=jgriffin

This commit is contained in:
Luqman Aden 2013-02-12 16:35:55 -08:00
Родитель c630f7f7c2
Коммит af0e70b70a
1 изменённых файлов: 11 добавлений и 10 удалений

Просмотреть файл

@ -3,8 +3,14 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
VIRTUAL_ENV_VERSION="1.8.2"
PYTHON=$1
# Store the current working directory so we can change back into it after
# preparing the Marionette virtualenv
CWD=$(pwd)
if [ -z "${PYTHON}" ]
then
echo "No python found"
@ -29,22 +35,17 @@ fi
if [ -d $VENV_DIR ]
then
echo "Using virtual environment in $VENV_DIR"
cd $VENV_DIR
. bin/activate
else
echo "Creating a virtual environment in $VENV_DIR"
curl https://raw.github.com/pypa/virtualenv/develop/virtualenv.py | ${PYTHON} - $VENV_DIR
cd $VENV_DIR
. bin/activate
# set up mozbase
git clone git://github.com/mozilla/mozbase.git
cd mozbase
python setup_development.py
curl https://raw.github.com/pypa/virtualenv/${VIRTUAL_ENV_VERSION}/virtualenv.py | ${PYTHON} - $VENV_DIR
fi
. $VENV_DIR/bin/activate
# update the marionette_client
# Updating the marionette_client needs us to change into its package folder.
# Otherwise the call to setup.py will hang
cd $MARIONETTE_HOME
python setup.py develop
cd $CWD
# pop off the python parameter
shift