diff options
author | Kotresh HR <khiremat@redhat.com> | 2019-05-08 14:10:05 +0530 |
---|---|---|
committer | Kotresh HR <khiremat@redhat.com> | 2019-05-21 10:44:53 +0530 |
commit | d6f523927bdd5d8914650aae7bd6e6f69e91b49f (patch) | |
tree | 0d805c78d084f57517fbf96f69616fdbbb2f84d6 /tests/geo-rep.rc | |
parent | 072a21576a65b5b0b2597115280972376f076a91 (diff) |
tests/geo-rep: Fix arequal checksum comparison
The arequal checkusm comparison was always returning
as successful, eventhough, if it was not. Fixed the same.
Backport of:
> Patch: https://review.gluster.org/22682
> Change-Id: I5083da25c0954126e452d06311d2d376f8540555
> BUG: 1707742
> Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 288cffd1ab7180cccfcdea36d0c469b9fa52108f)
Change-Id: I5083da25c0954126e452d06311d2d376f8540555
fixes: bz#1712220
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'tests/geo-rep.rc')
-rw-r--r-- | tests/geo-rep.rc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/geo-rep.rc b/tests/geo-rep.rc index e357ba8a812..2035b9fe106 100644 --- a/tests/geo-rep.rc +++ b/tests/geo-rep.rc @@ -168,7 +168,8 @@ function arequal_checksum() { master=$1 slave=$2 - diff <(arequal-checksum -p $master) <(arequal-checksum -p $slave) | wc -l + ret=$(diff <(arequal-checksum -p $master) <(arequal-checksum -p $slave) | wc -l) + echo x$ret } function symlink_ok() |