summaryrefslogtreecommitdiffstats
path: root/systems/Fedora/21/prepare_python_env.sh
diff options
context:
space:
mode:
authorBilly O'Mahony <billy.o.mahony@intel.com>2015-11-23 15:26:28 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-12-02 13:49:51 +0000
commit1c4d17533029cac0b3ec4770ab1d9c3817b646e7 (patch)
tree0ac2caffcfe81df5f362ea6db5d76e7194325ded /systems/Fedora/21/prepare_python_env.sh
parent5f98dededf101ce7ee3c11bd41d84ae61cce7feb (diff)
Add some error checking to F21 install
Make the install fail fast and obviously on error rather than continuing on. This can be used as a template for adding error checking on the other systems. JIRA: VSPERF-141 Change-Id: I1892db661a56ab2012e26c6720e0851fabbb51d9 Signed-off-by: Billy O'Mahony<billy.o.mahony@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Al Morton <acmorton@att.com>
Diffstat (limited to 'systems/Fedora/21/prepare_python_env.sh')
-rwxr-xr-xsystems/Fedora/21/prepare_python_env.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/systems/Fedora/21/prepare_python_env.sh b/systems/Fedora/21/prepare_python_env.sh
index 0c1465ca..f348c75d 100755
--- a/systems/Fedora/21/prepare_python_env.sh
+++ b/systems/Fedora/21/prepare_python_env.sh
@@ -23,7 +23,7 @@ fi
# enable virtual environment in a subshell, so QEMU build can use python 2.7
-(virtualenv-3.4 "$VSPERFENV_DIR"
-source "$VSPERFENV_DIR"/bin/activate
-pip install -r ../requirements.txt
-pip install pylint) \ No newline at end of file
+(virtualenv-3.4 "$VSPERFENV_DIR" || exit 1
+source "$VSPERFENV_DIR"/bin/activate || exit 1
+pip install -r ../requirements.txt || exit 1
+pip install pylint || exit 1)