diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-09-04 16:22:06 +0200 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-09-04 16:23:30 +0200 |
commit | 76f6818b3b1df294cb4e058c43f9595d2c563fb4 (patch) | |
tree | 209edccb53e87a141e523f70097630722ada7c5e | |
parent | 871387c6046e3719bd022e0d6e26a1456fb3a39b (diff) |
xci: Log functest results to console for daily jobs
Change-Id: Ic3f31fea8170af8b1e9845856976ef57df496e1e
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
-rw-r--r-- | jjb/xci/xci-daily-jobs.yaml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/jjb/xci/xci-daily-jobs.yaml b/jjb/xci/xci-daily-jobs.yaml index c81b490a8..cfe7cb14a 100644 --- a/jjb/xci/xci-daily-jobs.yaml +++ b/jjb/xci/xci-daily-jobs.yaml @@ -347,10 +347,29 @@ builders: - shell: | #!/bin/bash - set -o errexit set -o pipefail ssh root@192.168.122.2 "/root/run-functest.sh" + functest_exit=$? + + case ${DEPLOY_SCENARIO[0]} in + os-*) + FUNCTEST_LOG=/root/functest-results/functest.log + ;; + k8-*) + FUNCTEST_LOG=/root/functest-results/functest-kubernetes.log + ;; + *) + echo "Unable to determine the installer. Exiting!" + exit $functest_exit + ;; + esac + + echo "Functest log" + echo "---------------------------------------------------------------------------------" + ssh root@192.168.122.2 "cat $FUNCTEST_LOG" + echo "---------------------------------------------------------------------------------" + exit ${functest_exit} - builder: name: 'xci-daily-yardstick-macro' builders: |