X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fquilt;h=f26f74458a27dc9ce5c592b9aac94897df6d4284;hp=a6f78cd70812fc1d2f9599bf0411344aa6f2e921;hb=f7e37ea9f83b46c5efa4152b36c6cc0f4b91fadd;hpb=a6ba75765d8161841a511cc5eddb79d0209cf0d9 diff --git a/tests/tests/quilt b/tests/tests/quilt index a6f78cd7..f26f7445 100755 --- a/tests/tests/quilt +++ b/tests/tests/quilt @@ -41,8 +41,8 @@ iteration diff <../this.cmp + # normalise + perl -i~$compare~ -0777 -pe ' + s/\n+$//; $_ .= "\n"; + s/^(?:committer|parent|tree) .*\n//gm; + s/\n+(\(cherry picked from .*\)\n)\n*/\n\n/m + and s/$/$1/; + s/\n+$//; $_ .= "\n"; + ' ../this.cmp + if test -f ../last.cmp; then + diff -u ../last.cmp ../this.cmp + fi + mv ../this.cmp ../last.cmp +done + +t-ok