Skip to content
Snippets Groups Projects
Commit 6e27c42c99d0 authored by David M. Carr's avatar David M. Carr
Browse files

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.
parent c5d4900a804e
No related branches found
No related tags found
No related merge requests found
......@@ -150,9 +150,9 @@
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
......@@ -155,10 +155,10 @@
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
......@@ -161,8 +161,8 @@
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment