sapling/eden/scm/tests/test-rust-rmcwd.t
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

28 lines
650 B
Perl

#require rmcwd normal-layout
Note: With buck build the hg script can be a wrapper that runs shell commands.
That can print extra noisy outputs like " shell-init: error retrieving current
directory: getcwd: cannot access parent directories". So we skip this test for
buck build.
(rmcwd is incompatible with Python tests right now - os.getcwd() will fail)
$ A=$TESTTMP/a
$ mkdir $A
$ cd $A
Removed cwd
$ rmdir $A
$ hg debug-args
abort: cannot get current directory: * (glob)
[74]
Recreated cwd
$ mkdir $A
$ hg debug-args a
(warning: the current directory was recreated; consider running 'cd $PWD' to fix your shell)
["a"]