tests: use ls -A instead of ls -1 in test-removeemptydirs.t stable
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 20 Jun 2022 12:53:08 +0400
branchstable
changeset 49592 12efb17faee2
parent 49591 9e5b411b3b19
child 49593 e11760daee12
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.
tests/test-removeemptydirs.t
--- 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