D1699: tests: avoid echo with backslash escapes
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Dec 15 08:52:14 EST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG417fa23017f9: tests: avoid echo with backslash escapes (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1699?vs=4465&id=4472
REVISION DETAIL
https://phab.mercurial-scm.org/D1699
AFFECTED FILES
tests/test-run-tests.t
CHANGE DETAILS
diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -703,12 +703,14 @@
Accept the fix
- $ echo " $ echo 'saved backup bundle to \$TESTTMP/foo.hg'" >> test-failure.t
- $ echo " saved backup bundle to \$TESTTMP/foo.hg" >> test-failure.t
- $ echo " $ echo 'saved backup bundle to \$TESTTMP/foo.hg'" >> test-failure.t
- $ echo " saved backup bundle to \$TESTTMP\\foo.hg" >> test-failure.t
- $ echo " $ echo 'saved backup bundle to \$TESTTMP/foo.hg'" >> test-failure.t
- $ echo " saved backup bundle to \$TESTTMP/*.hg (glob)" >> test-failure.t
+ $ cat >> test-failure.t <<EOF
+ > $ echo 'saved backup bundle to \$TESTTMP/foo.hg'
+ > saved backup bundle to \$TESTTMP/foo.hg
+ > $ echo 'saved backup bundle to \$TESTTMP/foo.hg'
+ > saved backup bundle to $TESTTMP\\foo.hg
+ > $ echo 'saved backup bundle to \$TESTTMP/foo.hg'
+ > saved backup bundle to \$TESTTMP/*.hg (glob)
+ > EOF
$ echo 'y' | rt -i 2>&1
--- $TESTTMP/test-failure.t
To: martinvonz, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list