aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAmeer Hamza <[email protected]>2023-12-07 01:18:43 +0500
committerBrian Behlendorf <[email protected]>2024-01-19 12:28:02 -0800
commit387f003be3052ee1ea53cef7fdbc0babd2392c68 (patch)
tree7c83d054a06aba9d22e68e78c304fef4735a525a /tests
parent07cf973fe9e4b99b9c0a89038301fc9ad26f7e95 (diff)
ZTS: block_cloning: Use numeric sort for get_same_blocks
Reviewed-by: Kay Pedersen <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ameer Hamza <[email protected]> Closes #15614
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib b/tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib
index 526bd54a2..50f3a3d26 100644
--- a/tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib
+++ b/tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib
@@ -53,6 +53,6 @@ function get_same_blocks
awk '/ L0 / { print l++ " " $3 " " $7 }' > $zdbout.a
zdb $KEY -vvvvv $3 -O $4 | \
awk '/ L0 / { print l++ " " $3 " " $7 }' > $zdbout.b
- echo $(sort $zdbout.a $zdbout.b | uniq -d | cut -f1 -d' ')
+ echo $(sort -n $zdbout.a $zdbout.b | uniq -d | cut -f1 -d' ')
}