tests: use an absolute path to get around '..' being invalid on a dead CWD stable
authorAugie Fackler <augie@google.com>
Thu, 19 Jan 2017 16:23:49 -0500
branchstable
changeset 30849 763031a7690d
parent 30848 7080652af6e6
child 30850 41e31a6f5296
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.
tests/test-rebase-scenario-global.t
--- 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