From 0ebf2dfe62b094b1c7e507c75794dbef2bf250cd Mon Sep 17 00:00:00 2001 From: Ryan McNair Date: Fri, 7 Mar 2014 05:31:56 +0000 Subject: [PATCH] cinder_driver_certs.sh always passes driver In cinder_driver_certs.sh, the tests are run and output is piped to "tee". Currently, checking the exit code of this command only checks that "tee" exited properly. Using the pipefail option for this script will ensure the entire pipe succeeds before passing a driver. Change-Id: I58311aa0e2c779467d39c4477c4ea39d14eda207 Closes-Bug: #1289129 --- driver_certs/cinder_driver_cert.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver_certs/cinder_driver_cert.sh b/driver_certs/cinder_driver_cert.sh index d2c636f89d..7726e7eb01 100755 --- a/driver_certs/cinder_driver_cert.sh +++ b/driver_certs/cinder_driver_cert.sh @@ -19,6 +19,8 @@ # # SCREEN_LOGDIR=/opt/stack/screen-logs +set -o pipefail + CERT_DIR=$(cd $(dirname "$0") && pwd) TOP_DIR=$(cd $CERT_DIR/..; pwd)