From 16028a954368777f7e0996d940a47a7870e8a525 Mon Sep 17 00:00:00 2001 From: Michael Still Date: Tue, 24 Dec 2013 19:42:59 +1100 Subject: [PATCH] Check if we built the venv correctly A simple check for venv creation. Partial fix bug: 1263840 Change-Id: Ic585cd97a53871df1058a99b0d3db5ff553342f4 --- .../gate_real_db_upgrade/nova_mysql_migrations.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh index ff8ebcc..06bc12a 100755 --- a/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh +++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh @@ -142,6 +142,12 @@ mkvirtualenv $1 toggleglobalsitepackages export PYTHONPATH=$PYTHONPATH:$3 +if [ ! -e $VENV_PATH ] +then + echo "Error: making the virtual env failed" + exit 1 +fi + # zuul puts us in a headless mode, lets check it out into a working branch git branch -D working 2> /dev/null git checkout -b working