# HG changeset patch # User Matt Harbison # Date 2017-12-16 17:34:40 # Node ID e28dedf4ff4368820bbb085c668c3e6ea2088842 # Parent 991e4404e910e4fc420ae5ee25dc1872b1f23577 tests: fix the check-code rule for testing non-existent files I missed this in feecfefeba25. diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -185,7 +185,7 @@ utestpats = [ '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"), diff --git a/tests/test-lfs.t b/tests/test-lfs.t --- a/tests/test-lfs.t +++ b/tests/test-lfs.t @@ -571,8 +571,7 @@ repo12 doesn't have any cached lfs files 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