]> diplodocus.org Git - nmh/commitdiff
In test-mhfixmsg, run output through uniq before head instead of after.
authorDavid Levine <levinedl@acm.org>
Mon, 1 Jul 2013 12:11:27 +0000 (07:11 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 1 Jul 2013 12:11:27 +0000 (07:11 -0500)
test/mhfixmsg/test-mhfixmsg

index db45fc6..851c3c9 100755 (executable)
@@ -643,10 +643,10 @@ d><td align=3D"right"><font face=3D"Arial, Helvetica, sans-serif" color=3D"=
 EOF
 
 if [ $can_reformat_texthtml -eq 1 ]; then
+  #### lynx inserts multiple blank lines, so use uniq to squeeze them.
   #### Truncate to avoid comparing the html portion because it can
   #### get reformatted.
-  #### lynx inserts multiple blank lines, so use uniq to squeeze them.
-  mhfixmsg last -outfile - | head -22 | uniq >"$actual"
+  mhfixmsg last -outfile - | uniq | head -22 >"$actual"
   check "$expected" "$actual" 'ignore space'
 else
   cp -p "$MH_TEST_DIR/Mail/inbox/15" "$MH_TEST_DIR/Mail/inbox/15.backup"