Mercurial > hg
diff tests/test-sparse-clear.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 | c9cbf4de27ba |
children | a6efb9180764 |
line wrap: on
line diff
--- a/tests/test-sparse-clear.t Fri Apr 10 19:53:36 2020 +0200 +++ b/tests/test-sparse-clear.t Fri Apr 10 19:58:34 2020 +0200 @@ -28,10 +28,12 @@ Clear rules when there are includes $ hg debugsparse --include *.py - $ ls + $ ls -A + .hg data.py $ hg debugsparse --clear-rules - $ ls + $ ls -A + .hg base.sparse data.py index.html @@ -41,12 +43,14 @@ Clear rules when there are excludes $ hg debugsparse --exclude *.sparse - $ ls + $ ls -A + .hg data.py index.html readme.txt $ hg debugsparse --clear-rules - $ ls + $ ls -A + .hg base.sparse data.py index.html @@ -56,18 +60,21 @@ Clearing rules should not alter profiles $ hg debugsparse --enable-profile webpage.sparse - $ ls + $ ls -A + .hg base.sparse index.html webpage.sparse $ hg debugsparse --include *.py - $ ls + $ ls -A + .hg base.sparse data.py index.html webpage.sparse $ hg debugsparse --clear-rules - $ ls + $ ls -A + .hg base.sparse index.html webpage.sparse