diff options
author | Amar Tumballi <amarts@redhat.com> | 2019-07-16 10:18:56 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-07-23 10:24:19 +0530 |
commit | 834c1c1368b067c777b42c6b130e1fe1aa954fea (patch) | |
tree | fce39c7b3265393f9e986517121da224a1e05dc4 | |
parent | cd91a75c834b1a6fc2252b09b13b93b7b6ca1ceb (diff) |
lcov: run bad-tests and known-issues too
Fixes: bz#1723781
Change-Id: If6781e12dd4b84b041b21041e0607406a99de625
Signed-off-by: Amar Tumballi <amarts@redhat.com>
-rw-r--r-- | build-gluster-org/scripts/lcov.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build-gluster-org/scripts/lcov.sh b/build-gluster-org/scripts/lcov.sh index b786709..e0b1467 100644 --- a/build-gluster-org/scripts/lcov.sh +++ b/build-gluster-org/scripts/lcov.sh @@ -37,7 +37,7 @@ lcov -i -c -d . -o coverage/glusterfs-lcov.info set +e echo "Running the regression test" -sudo -E bash /opt/qa/regression.sh -c -t 300 +sudo -E bash /opt/qa/regression.sh -c -b -k -t 300 REGRESSION_STATUS=$? mv glusterfs-logs.tgz regression-glusterfs-logs.tgz @@ -54,8 +54,11 @@ sed -i.bak '/stdout/d' coverage/glusterfs-lcov.info genhtml -o coverage/ coverage/glusterfs-lcov.info echo "The HTML report is generated as index.html file" -if [ $REGRESSION_STATUS -ne 0 ] || [ $SMOKE_STATUS -ne 0 ]; - then - echo "Smoke test or regression tests failed" +if [ $REGRESSION_STATUS -ne 0 ] ; then + echo "Regression tests failed (Skip failure)" +fi + +if [ $SMOKE_STATUS -ne 0 ]; then + echo "Smoke test failed" exit 1 fi |