Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo-missing.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 | f1186c292d03 |
children | b7fde9237c92 |
line wrap: on
line diff
--- a/tests/test-subrepo-missing.t Fri Apr 10 19:53:36 2020 +0200 +++ b/tests/test-subrepo-missing.t Fri Apr 10 19:58:34 2020 +0200 @@ -50,7 +50,8 @@ $ hg st warning: subrepo spec file '.hgsub' not found ! .hgsub - $ ls subrepo + $ ls -A subrepo + .hg a delete .hgsubstate and update @@ -65,7 +66,8 @@ use (c)hanged version or leave (d)eleted? c 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg st - $ ls subrepo + $ ls -A subrepo + .hg a Enable obsolete @@ -134,7 +136,10 @@ 1: repository $TESTTMP/repo/subrepo not found 3: repository $TESTTMP/repo/subrepo not found 4: repository $TESTTMP/repo/subrepo not found - $ ls + $ ls -A + .hg + .hgsub + .hgsubstate b $ mv b subrepo