Patchwork D2600: tests: prevent enormous output spew in test-lfs-largefiles.t

login
register
mail settings
Submitter phabricator
Date March 3, 2018, 8:06 p.m.
Message ID <10e1bb5c014be5a5813e56aafb0a908d@localhost.localdomain>
Download mbox | patch
Permalink /patch/28818/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2018, 8:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9318babff83b: tests: prevent enormous output spew in test-lfs-largefiles.t (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2600?vs=6453&id=6454

REVISION DETAIL
  https://phab.mercurial-scm.org/D2600

AFFECTED FILES
  tests/test-lfs-largefiles.t

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-lfs-largefiles.t b/tests/test-lfs-largefiles.t
--- a/tests/test-lfs-largefiles.t
+++ b/tests/test-lfs-largefiles.t
@@ -338,7 +338,10 @@ 
 No diffs when comparing merge and p1 that kept p1's changes.  Diff of lfs to
 largefiles no longer operates in standin files.
 
-  $ hg diff -r 2:3
+This `head -n 20` looks dumb (since we expect no output), but if something
+breaks you can get 1048576 lines of +y in the output, which takes a looooooong
+time to print.
+  $ hg diff -r 2:3 | head -n 20
   $ hg diff -r 2:6
   diff -r e989d0fa3764 -r 752e3a0d8488 large.bin
   --- a/large.bin	Thu Jan 01 00:00:00 1970 +0000