From 1c4d17533029cac0b3ec4770ab1d9c3817b646e7 Mon Sep 17 00:00:00 2001 From: Billy O'Mahony Date: Mon, 23 Nov 2015 15:26:28 +0000 Subject: 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 Reviewed-by: Maryam Tahhan Reviewed-by: Al Morton --- systems/Fedora/21/build_base_machine.sh | 4 ++-- systems/Fedora/21/prepare_python_env.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'systems/Fedora') diff --git a/systems/Fedora/21/build_base_machine.sh b/systems/Fedora/21/build_base_machine.sh index 036f6cc2..0aaa73b6 100755 --- a/systems/Fedora/21/build_base_machine.sh +++ b/systems/Fedora/21/build_base_machine.sh @@ -66,7 +66,7 @@ abrt-addon-python3 # install git-review tool git-review -" | grep -v ^#) +" | grep -v ^#) || exit 1 # Create hugepage dirs -mkdir -p /dev/hugepages \ No newline at end of file +mkdir -p /dev/hugepages 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) -- cgit 1.2.3-korg