tests: use ls -A instead of ls -1 in test-removeemptydirs.t
In case the tests are run as root, ls assumes -A by default on some systems
(e.g. NetBSD). Tests probably shouldn't be run as root, but let's use -A just
in case, for convenience.
--- a/tests/test-removeemptydirs.t Tue Nov 15 10:28:39 2022 +0100
+++ b/tests/test-removeemptydirs.t Mon Jun 20 12:53:08 2022 +0400
@@ -134,7 +134,8 @@
$ hg $DO_RM --config extensions.histedit= histedit -q --commands ../histedit_commands
current directory was removed (no-windows !)
(consider changing to repo root: $TESTTMP/hghistedit) (no-windows !)
- $ ls -1 $TESTTMP/hghistedit/
+ $ ls -A $TESTTMP/hghistedit/
+ .hg
histedit_commands
r0
r1
@@ -149,9 +150,9 @@
$ "$PYTHON" "$TESTTMP/pwd.py"
<directory is no longer accessible>
#endif
- $ ls -1 $TESTTMP/hghistedit/somedir
+ $ ls -A $TESTTMP/hghistedit/somedir
foo
- $ ls -1
+ $ ls -A
foo (windows !)
Get out of the doomed directory