jjb: xci: xci-start-new-vm.sh: Set pipefail option 23/52523/1
authorMarkos Chandras <mchandras@suse.de>
Fri, 23 Feb 2018 12:57:07 +0000 (12:57 +0000)
committerMarkos Chandras <mchandras@suse.de>
Fri, 23 Feb 2018 12:57:32 +0000 (12:57 +0000)
In commit I77d5d66c0146f943d805612ca5b47e2eed3ffc41 the 'ts' utility
was added in order to print timestamps for deployment. However, this
breaks the exit code since 'pipefail' was not set so every job was
returning 'success'.

Change-Id: I2625a655a7334b1e43b690618821e69377075ed1
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/xci-start-new-vm.sh

index 2c6ec3f..b38ebe5 100755 (executable)
@@ -35,6 +35,7 @@ cd $WORKSPACE
 # yourself.
 cat > xci_test.sh<<EOF
 #!/bin/bash
+set -o pipefail
 export DISTRO=$DISTRO
 export DEPLOY_SCENARIO=$DEPLOY_SCENARIO
 export FUNCTEST_MODE=$FUNCTEST_MODE