changeset 7042:0ada66dcc259

tests: fix reported patch tool name in test-mq Strip any path of the patch executable, which it might return on failure.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 18 Sep 2008 13:45:36 +0200
parents b856071435f7
children b714aac1f7b3
files tests/test-mq tests/test-mq.out
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq	Thu Sep 18 13:48:41 2008 +0200
+++ b/tests/test-mq	Thu Sep 18 13:45:36 2008 +0200
@@ -512,7 +512,7 @@
 hg qpush
 
 echo % apply force, should not discard changes with empty patch
-hg qpush -f
+hg qpush -f 2>&1 | sed 's,^.*/patch,patch,g'
 hg diff --config diff.nodates=True
 hg qdiff --config diff.nodates=True
 hg log -l1 -p
--- a/tests/test-mq.out	Thu Sep 18 13:48:41 2008 +0200
+++ b/tests/test-mq.out	Thu Sep 18 13:45:36 2008 +0200
@@ -492,7 +492,7 @@
 abort: local changes found, refresh first
 % apply force, should not discard changes with empty patch
 applying empty
-/usr/bin/patch: **** Only garbage was found in the patch input.
+patch: **** Only garbage was found in the patch input.
 patch failed, unable to continue (try -v)
 patch empty is empty
 Now at: empty