changeset 547:6e27c42c99d0

tests: fix test-subrepos.t sporadically failing I was seeing sporadic failures running this test on Mac OS X 10.8. They looked like this: + sed: 1: "s_/private/var/folders/ ...": bad flag in substitute command: 'T' My assumption is that some character was being included in the path of the temporary directory that sed didn't like. It looks like the sed function was being used to eliminate differences between test runs due to the path changing each run. That isn't needed any more now that we're using the unified test format, since said replacement is taken care of for us by run-tests.py. Thus, this changeset removes the calls to sed and updates the output to use the result from the framework-level replacement.
author David M. Carr <david@carrclan.us>
date Sun, 07 Oct 2012 19:37:59 -0400
parents c5d4900a804e
children 461fe932c388
files tests/test-subrepos.t
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-subrepos.t
+++ b/tests/test-subrepos.t
@@ -150,19 +150,19 @@
   pulling from $TESTTMP/gitrepo1
   importing git objects into hg
   (run 'hg update' to get a working copy)
-  $ hg checkout -C  | sed "s_$(dirname $(pwd))_TEMPLOCATION_"
-  cloning subrepo hgsub from TEMPLOCATION/hgsub
+  $ hg checkout -C
+  cloning subrepo hgsub from $TESTTMP/hgsub
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd ..
   $ echo % pull shall bring .hgsub entry which was added to the git repo
   % pull shall bring .hgsub entry which was added to the git repo
-  $ cat hgrepo/.hgsub | sed "s_$(pwd)_TEMPLOCATION_"
-  hgsub = TEMPLOCATION/hgsub
+  $ cat hgrepo/.hgsub
+  hgsub = $TESTTMP/hgsub
   subrepo1 = [git]../gitsubrepo
   xyz/subrepo2 = [git]../gitsubrepo
   $ echo % .hgsubstate shall list revision of the subrepo added through git repo
   % .hgsubstate shall list revision of the subrepo added through git repo
-  $ cat hgrepo/.hgsubstate | sed "s_$(pwd)_TEMPLOCATION_"
+  $ cat hgrepo/.hgsubstate
   481ec30d580f333ae3a77f94c973ce37b69d5bda hgsub
   56f0304c5250308f14cfbafdc27bd12d40154d17 subrepo1
   aabf7cd015089aff0b84596e69aa37b24a3d090a xyz/subrepo2