Browse code

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

Ryan McNair authored on 2014/03/07 14:31:56
Showing 1 changed files
... ...
@@ -19,6 +19,8 @@
19 19
 #
20 20
 #     SCREEN_LOGDIR=/opt/stack/screen-logs
21 21
 
22
+set -o pipefail
23
+
22 24
 CERT_DIR=$(cd $(dirname "$0") && pwd)
23 25
 TOP_DIR=$(cd $CERT_DIR/..; pwd)
24 26