Commit 7852906c by Jay Zoldak Committed by Calen Pennington

Reset the jenkins python virtualenv before test runs.

parent d78dd92c
......@@ -54,6 +54,13 @@ git fetch origin master:refs/remotes/origin/master
# Bootstrap Ruby requirements so we can run the tests
bundle install
# Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up.
if [ -e $HOME/edx-venv_clean.tar.gz ]; then
rm -rf $HOME/edx-venv
tar -C $HOME -xf $HOME/edx-venv_clean.tar.gz
fi
# Activate the Python virtualenv
source $HOME/edx-venv/bin/activate
......
......@@ -62,6 +62,13 @@ git fetch origin master:refs/remotes/origin/master
# Bootstrap Ruby requirements so we can run the tests
bundle install
# Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up.
if [ -e $HOME/edx-venv_clean.tar.gz ]; then
rm -rf $HOME/edx-venv
tar -C $HOME -xf $HOME/edx-venv_clean.tar.gz
fi
# Activate the Python virtualenv
source $HOME/edx-venv/bin/activate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment