tests: rsend.kshlib: cmp_ds_prop: mask out differences in origin pool

This fixes rsend_011_pos:
20:28:26.94 SUCCESS: cmp_ds_prop testpool/testfs/fs1/fs2 testpool2/testfs/fs1/fs2
20:28:26.96 2c2
20:28:26.96 < origin    testpool@psnap  -
20:28:26.96 ---
20:28:26.96 > origin    testpool2@psnap -
20:28:26.97 ERROR: cmp_ds_prop testpool/pclone testpool2/pclone exited 1

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13250
Closes #13259
This commit is contained in:
наб 2022-03-14 22:50:56 +01:00 committed by Brian Behlendorf
parent 964d41806f
commit 91933eb977
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ function cmp_ds_prop
fi fi
diff \ diff \
<(zfs get -Ho property,value,source $props $dtst1 | sed "s:$dtst1:PREFIX:g") \ <(zfs get -Ho property,value,source $props $dtst1 | sed -e "s:$dtst1:PREFIX:g" -e 's/^origin [^@]*/origin POOL/') \
<(zfs get -Ho property,value,source $props $dtst2 | sed "s:$dtst2:PREFIX:g") <(zfs get -Ho property,value,source $props $dtst2 | sed -e "s:$dtst2:PREFIX:g" -e 's/^origin [^@]*/origin POOL/')
} }
# #