sapling/eden/scm/tests/test-rust-rmcwd.t

28 lines
650 B
Perl
Raw Normal View History

#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"]