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.
This commit is contained in:
Augie Fackler 2017-01-19 16:23:49 -05:00
parent e145fc2df7
commit e144629692

View File

@ -770,9 +770,13 @@ Test that rebase is not confused by $CWD disappearing during rebase (issue4121)
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