tests: don't use 'test -e'

On Solaris 10:

  $ test -e f
  test: argument expected
This commit is contained in:
Mads Kiilerich 2011-10-17 00:11:56 +02:00
parent c8740f2b96
commit 4578a9a76b
2 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,7 @@ testpats = [
(r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
(r'[^>]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"),
(r'stop\(\)', "don't use 'stop' as a shell function name"),
(r'(\[|\btest\b).*-e ', "don't use 'test -e', use 'test -f'"),
],
# warnings
[]

View File

@ -581,5 +581,5 @@ First, create that condition in the repository.
A $TESTTMP/rebaserepo/recreated/somethingold
Checked out revision 10.
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ test -e recreated/somethingold
$ test -f recreated/somethingold