From: Christoph Hellwig Date: Thu, 20 Jun 2024 12:48:44 +0000 (+0200) Subject: xfs/073: avoid large recursive diff X-Git-Tag: v2024.06.27~29 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9cca19c674a9745c5daa225a5d390902f5834076;p=xfstests-dev.git xfs/073: avoid large recursive diff xfs/073 has been failing for me for a while on most of my test setups with: diff: memory exhausted from the large recursive diff it does. Replace that with a pipe using md5sum to reduce the memory usage. Based on a snipplet from Darrick Wong. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- diff --git a/tests/xfs/073 b/tests/xfs/073 index c7616b9e..0f96fdb0 100755 --- a/tests/xfs/073 +++ b/tests/xfs/073 @@ -76,7 +76,8 @@ _verify_copy() fi echo comparing new image files to old - diff -Naur $source_dir $target_dir + (cd $source_dir; find . -type f -print0 | xargs -0 md5sum) | \ + (cd $target_dir ; md5sum -c --quiet) echo comparing new image directories to old find $source_dir | _filter_path $source_dir > $tmp.manifest1