Patchwork D3749: tests: replace `echo -n` with `printf` per check-code

login
register
mail settings
Submitter phabricator
Date June 15, 2018, 2:15 p.m.
Message ID <differential-rev-PHID-DREV-5fqmkjyttsucc3gcqfgg-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32178/
State Superseded
Headers show

Comments

phabricator - June 15, 2018, 2:15 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-commit-interactive-curses.t

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - June 15, 2018, 2:15 p.m.
durin42 added a comment.


  FYI, this is intended for the stable branch.

REPOSITORY
  rHG Mercurial

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

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

Patch

diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t
--- a/tests/test-commit-interactive-curses.t
+++ b/tests/test-commit-interactive-curses.t
@@ -215,7 +215,7 @@ 
   +hello world
 
 Make file empty
-  $ echo -n > x
+  $ printf "" > x
   $ cat <<EOF >testModeCommands
   > X
   > EOF