test: make test-extdiff resilient to */gnubin/echo stable
authorSean Farley <sean.michael.farley@gmail.com>
Thu, 26 Feb 2015 10:23:04 -0800
branchstable
changeset 24153 f7401f816cc9
parent 24152 97a548aeb749
child 24154 a41902aac76d
test: make test-extdiff resilient to */gnubin/echo My Mac test machine has 'echo' in '/opt/local/libexec/gnubin/echo' since, well, GNU is not BSD. Also, I feel it need to be said about using regexes: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
tests/test-extdiff.t
--- a/tests/test-extdiff.t	Thu Feb 26 23:30:33 2015 +0900
+++ b/tests/test-extdiff.t	Thu Feb 26 10:23:04 2015 -0800
@@ -179,7 +179,7 @@
 TODO
 #else
   $ hg --debug odd | grep '^running'
-  running "*/bin/echo --foo='sp ace' 'sp ace' --bar='sp ace' 'sp ace'" in * (glob)
+  running "*/echo --foo='sp ace' 'sp ace' --bar='sp ace' 'sp ace'" in * (glob)
 #endif
 
 Empty argument must be quoted