mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
e145fc2df7
commit
e144629692
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user