summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/lcov.sh
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-08-13 07:04:58 +0530
committerNigel Babu <nigelb@redhat.com>2018-08-13 01:54:27 +0000
commit06a1cdb2cfd32ba8de8bec3ca54d604a26e141da (patch)
tree00960d66e01359c369e2c3d8a0e8cd5da8c0c155 /build-gluster-org/scripts/lcov.sh
parent314c2081acbe1572adaf8f3e134eb1f35f51009a (diff)
Fix the return value for lcov
The status was being taken for the mv command rather than the test run. When regression passes, we don't actually get any logs, so this would actually fail causing the entire run to be marked as failed Change-Id: Ia9fa731f7cc66c1c47481ebc47ffa2bc55d7c4ea
Diffstat (limited to 'build-gluster-org/scripts/lcov.sh')
-rw-r--r--build-gluster-org/scripts/lcov.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-gluster-org/scripts/lcov.sh b/build-gluster-org/scripts/lcov.sh
index 5f807b2..575559a 100644
--- a/build-gluster-org/scripts/lcov.sh
+++ b/build-gluster-org/scripts/lcov.sh
@@ -38,13 +38,13 @@ set +e
echo "Running the regression test"
sudo -E bash /opt/qa/regression.sh -c -t 300
-mv glusterfs-logs.tgz regression-glusterfs-logs.tgz
REGRESSION_STATUS=$?
+mv glusterfs-logs.tgz regression-glusterfs-logs.tgz
echo "Running the smoke tests"
sudo -E bash /opt/qa/smoke.sh -c
-mv glusterfs-logs.tgz smoke-glusterfs-logs.tgz
SMOKE_STATUS=$?
+mv glusterfs-logs.tgz smoke-glusterfs-logs.tgz
echo "Capturing the line coverage in the .info file"
lcov -c -d . -o coverage/glusterfs-lcov.info