tests: make tests work on Mac OS
wc -m adds spacing before the results, we trim them to make the test pass on
Mac OS.
--- a/tests/test-inhibit.t Wed Apr 01 16:47:22 2015 -0700
+++ b/tests/test-inhibit.t Thu Apr 02 15:44:11 2015 -0700
@@ -132,12 +132,12 @@
check public revision got cleared
(when adding the second inhibitor, the first one is removed because it is public)
- $ wc -m .hg/store/obsinhibit
+ $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//'
20 .hg/store/obsinhibit
$ hg prune 7
1 changesets pruned
$ hg debugobsinhibit --hidden 18214586bf78
- $ wc -m .hg/store/obsinhibit
+ $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//'
20 .hg/store/obsinhibit
$ hg log -G
@ 9:55c73a90e4b4 add cJ
@@ -158,7 +158,7 @@
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
working directory now at cf5c4f4554ce
$ hg debugobsinhibit --hidden 55c73a90e4b4
- $ wc -m .hg/store/obsinhibit
+ $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//'
20 .hg/store/obsinhibit
$ hg log -G
o 9:55c73a90e4b4 add cJ