Mercurial > hg
changeset 30849:763031a7690d stable
tests: use an absolute path to get around '..' being invalid on a dead CWD
Only FreeBSD seems to be this picky. Note that this explicit
absolute-path `cd` exposes a defect in the test, in that we end up
still inside the cwd-vanish repository, but that's not a regression in
this change. Since we're in a code freeze, I'm doing the smallest
thing possible to try and fix bugs on FreeBSD, rather than cleaning up
the entire problem. I'll follow up with a more complete fix after the
freeze.
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 19 Jan 2017 16:23:49 -0500 |
parents | 7080652af6e6 |
children | 41e31a6f5296 |
files | tests/test-rebase-scenario-global.t |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-rebase-scenario-global.t Wed Jan 18 18:25:51 2017 -0800 +++ b/tests/test-rebase-scenario-global.t Thu Jan 19 16:23:49 2017 -0500 @@ -770,9 +770,13 @@ saved backup bundle to $TESTTMP/cwd-vanish/.hg/strip-backup/779a07b1b7a0-853e0073-backup.hg (glob) #endif +Get back to the root of cwd-vanish. Note that even though `cd ..` +works on most systems, it does not work on FreeBSD 10, so we use an +absolute path to get back to the repository. + $ cd $TESTTMP/cwd-vanish + Test that rebase is done in topo order (issue5370) - $ cd .. $ hg init order $ cd order $ touch a && hg add a && hg ci -m A