]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/osd/osd-scrub-repair.sh: Fix diff options
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 26 Jun 2017 11:23:59 +0000 (13:23 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Mon, 26 Jun 2017 11:23:59 +0000 (13:23 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/osd/osd-scrub-repair.sh

index 968acc72cbb79b45474d41eea3c60d0c28a26944..8ab73cfd6fc2d2c94bc6c444177ca8439c6c2ca5 100755 (executable)
@@ -1907,7 +1907,7 @@ function corrupt_scrub_erasure() {
 EOF
 
     jq "$jqfilter" $dir/json | python -c "$sortkeys" | sed -e "$sedfilter" > $dir/csjson
-    diff -y $termwidth $dir/checkcsjson $dir/csjson || test $getjson = "yes" || return 1
+    diff ${DIFFCOLOPTS} $dir/checkcsjson $dir/csjson || test $getjson = "yes" || return 1
     if test $getjson = "yes"
     then
         jq '.' $dir/json > save3.json
@@ -2491,7 +2491,7 @@ EOF
     fi
 
     jq "$jqfilter" $dir/json | python -c "$sortkeys" | sed -e "$sedfilter" > $dir/csjson
-    diff -y $termwidth $dir/checkcsjson $dir/csjson || test $getjson = "yes" || return 1
+    diff ${DIFFCOLOPTS} $dir/checkcsjson $dir/csjson || test $getjson = "yes" || return 1
     if test $getjson = "yes"
     then
       if [ "$allow_overwrites" = "true" ]