Mercurial > hg
changeset 49592:12efb17faee2 stable
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 20 Jun 2022 12:53:08 +0400 |
parents | 9e5b411b3b19 |
children | e11760daee12 |
files | tests/test-removeemptydirs.t |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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