Patchwork D5399: test: update test-logtoprocess.t to not requires less

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2018, 12:04 p.m.
Message ID <55a36bbf2f9003e7430366388ce8d70a@localhost.localdomain>
Download mbox | patch
Permalink /patch/37049/
State Not Applicable
Headers show

Comments

phabricator - Dec. 10, 2018, 12:04 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG44378796c5e5: test: update test-logtoprocess.t to not requires less (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5399?vs=12764&id=12765

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

AFFECTED FILES
  tests/test-logtoprocess.t

CHANGE DETAILS




To: lothiraldan, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-logtoprocess.t b/tests/test-logtoprocess.t
--- a/tests/test-logtoprocess.t
+++ b/tests/test-logtoprocess.t
@@ -89,6 +89,16 @@ 
 script will die after the timeout before we could touch the file and the
 resulting file will not exists. If not, we will touch the file and see it.
 
+  $ cat >> fakepager.py <<EOF
+  > import sys
+  > printed = False
+  > for line in sys.stdin:
+  >     sys.stdout.write(line)
+  >     printed = True
+  > if not printed:
+  >     sys.stdout.write('paged empty output!\n')
+  > EOF
+
   $ cat > $TESTTMP/wait-output.sh << EOF
   > #!/bin/sh
   > for i in \`$TESTDIR/seq.py 50\`; do
@@ -107,6 +117,8 @@ 
   > [extensions]
   > logtoprocess=
   > pager=
+  > [pager]
+  > pager = "$PYTHON" $TESTTMP/fakepager.py
   > [logtoprocess]
   > commandfinish=$TESTTMP/wait-output.sh
   > EOF