summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-02-23 13:48:33 +0000
committerMarkos Chandras <mchandras@suse.de>2018-02-23 13:49:47 +0000
commit545874b69ae0f0e4607c44420434b9f1e83fa173 (patch)
tree5c79bb943cc7a07bd341b55d03d5f30a3e797046
parente92f64a24a04b08387af618a9bc398d0315bb7ce (diff)
xci: scripts: start-new-vm: Set pipefail option
In commit I75a8cb8c05957bb205e63210d6cafaf54d989f32 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: Ia5f47ea96a4a5be9ed0664f5c7100accc30cde51 Signed-off-by: Markos Chandras <mchandras@suse.de>
-rwxr-xr-xxci/scripts/vm/start-new-vm.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh
index f3ddcc07..f4cec30a 100755
--- a/xci/scripts/vm/start-new-vm.sh
+++ b/xci/scripts/vm/start-new-vm.sh
@@ -333,6 +333,7 @@ if [[ $? != 0 ]]; then
echo "Creating a default test case to run xci-deploy.sh"
cat > ${BASE_PATH}/run_jenkins_test.sh <<EOF
#!/bin/bash
+set -o pipefail
export XCI_FLAVOR=mini
cd ~/releng-xci/xci
./xci-deploy.sh | ts