Mercurial > hg
diff tests/test-purge.t @ 44724:5c2a4f37eace
tests: deal with "ls" vs "ls -A" difference on 2BSD derived systems
BSD-derived systems will use "ls -A" when running as root. Adjust the
test cases to always use the flag and include .hg and related output as
appropiately.
Differential Revision: https://phab.mercurial-scm.org/D8397
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 10 Apr 2020 19:58:34 +0200 |
parents | 9f8eddd2723f |
children | 135056e8b5a8 |
line wrap: on
line diff
--- a/tests/test-purge.t Fri Apr 10 19:53:36 2020 +0200 +++ b/tests/test-purge.t Fri Apr 10 19:58:34 2020 +0200 @@ -25,7 +25,9 @@ empty_dir $ hg purge -v removing directory empty_dir - $ ls + $ ls -A + .hg + .hgignore directory r1 @@ -41,7 +43,9 @@ removing file untracked_dir/untracked_file1 removing file untracked_dir/untracked_file2 removing directory untracked_dir - $ ls + $ ls -A + .hg + .hgignore directory r1 @@ -61,7 +65,9 @@ $ hg purge -v removing file untracked_file removing file untracked_file_readonly - $ ls + $ ls -A + .hg + .hgignore directory r1 @@ -72,7 +78,9 @@ directory/untracked_file $ hg purge -v removing file directory/untracked_file - $ ls + $ ls -A + .hg + .hgignore directory r1 @@ -84,7 +92,9 @@ $ hg purge -v removing directory untracked_directory/nested_directory removing directory untracked_directory - $ ls + $ ls -A + .hg + .hgignore directory r1 @@ -98,7 +108,9 @@ removing directory untracked_directory/nested_directory removing directory untracked_directory $ cd .. - $ ls + $ ls -A + .hg + .hgignore directory r1 @@ -113,7 +125,9 @@ removing directory untracked_directory/nested_directory removing directory untracked_directory $ cd .. - $ ls + $ ls -A + .hg + .hgignore directory r1 $ ls directory/untracked_file @@ -135,7 +149,9 @@ ignored $ hg purge -v -i removing file ignored - $ ls + $ ls -A + .hg + .hgignore directory r1 untracked_file @@ -189,7 +205,9 @@ $ touch excluded_file $ hg purge -p -X excluded_file $ hg purge -v -X excluded_file - $ ls + $ ls -A + .hg + .hgignore directory excluded_file r1 @@ -201,7 +219,9 @@ $ touch excluded_dir/file $ hg purge -p -X excluded_dir $ hg purge -v -X excluded_dir - $ ls + $ ls -A + .hg + .hgignore directory excluded_dir r1 @@ -214,7 +234,9 @@ $ mkdir excluded_dir $ hg purge -p -X excluded_dir $ hg purge -v -X excluded_dir - $ ls + $ ls -A + .hg + .hgignore directory excluded_dir r1 @@ -241,7 +263,9 @@ $ hg purge -v --files removing file dir/untracked_file removing file untracked_file - $ ls + $ ls -A + .hg + .hgignore dir empty_dir $ ls dir @@ -254,7 +278,9 @@ empty_dir $ hg purge -v --dirs removing directory empty_dir - $ ls + $ ls -A + .hg + .hgignore dir untracked_file $ ls dir @@ -273,6 +299,8 @@ removing file untracked_file removing directory empty_dir removing directory dir - $ ls + $ ls -A + .hg + .hgignore $ cd ..