summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-12-08 22:42:58 -0500
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-12-08 22:44:02 -0500
commit676eeaeadb3cb8b5d60f00d566c6dfa28b750e84 (patch)
tree893f63e1da64378835d0ffdd02c0c9c308da467e /jjb
parent1829701a455e55280f4b6b72a23c57b587171661 (diff)
doctor: adds test result check
Change-Id: Id43d0434e4215c265a669505973ccea012741da6 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/doctor/doctor.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/jjb/doctor/doctor.yml b/jjb/doctor/doctor.yml
index 8a0d0155a..f9ee3de79 100644
--- a/jjb/doctor/doctor.yml
+++ b/jjb/doctor/doctor.yml
@@ -166,7 +166,12 @@
builders:
- 'functest-suite-builder'
- shell: |
- cp $HOME/opnfv/functest/results/{stream}/{project}.log $WORKSPACE/tests/
+ functest_log="$HOME/opnfv/functest/results/{stream}/{project}.log"
+ to_be_archived="$WORKSPACE/tests/functest-{project}.log"
+ cp $functest_log $to_be_archived
+ # NOTE: checking the test result, as the previous job could return
+ # 0 regardless the result of doctor test scenario.
+ grep -e ' OK$' $functest_log || exit 1
publishers:
- archive: