Mercurial > hg-stable
changeset 35451:e28dedf4ff43
tests: fix the check-code rule for testing non-existent files
I missed this in feecfefeba25.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 16 Dec 2017 12:34:40 -0500 |
parents | 991e4404e910 |
children | 8251c4c4abdc |
files | contrib/check-code.py tests/test-lfs.t |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py Sat Dec 16 11:32:10 2017 -0500 +++ b/contrib/check-code.py Sat Dec 16 12:34:40 2017 -0500 @@ -185,7 +185,7 @@ 'use $LOCALIP not an explicit loopback address'), (r'^ (?![>$] ).*\$LOCALIP.*[^)]$', 'mark $LOCALIP output lines with (glob) to help tests in BSD jails'), - (r'^ (cat|find): .*: No such file or directory', + (r'^ (cat|find): .*: \$ENOENT\$', 'use test -f to test for file existence'), (r'^ diff -[^ -]*p', "don't use (external) diff with -p for portability"),
--- a/tests/test-lfs.t Sat Dec 16 11:32:10 2017 -0500 +++ b/tests/test-lfs.t Sat Dec 16 12:34:40 2017 -0500 @@ -571,8 +571,7 @@ files. Therefore, the files don't exist in the remote store. Use the files in the user cache. - $ find $TESTTMP/repo12/.hg/store/lfs/objects -type f - find: */repo12/.hg/store/lfs/objects*: $ENOENT$ (glob) + $ test -d $TESTTMP/repo12/.hg/store/lfs/objects [1] $ hg --config extensions.share= share repo12 repo13