Mercurial > hg
comparison tests/hghave @ 15441:e0348815e806
tests: use 'hghave symlink' for tests using symlinks
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 07 Nov 2011 03:14:54 +0100 |
parents | 53f37b24f26a |
children | e1f05d7a8c7b |
comparison
equal
deleted
inserted
replaced
15440:9ab2b3b730ee | 15441:e0348815e806 |
---|---|
159 | 159 |
160 def has_p4(): | 160 def has_p4(): |
161 return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/') | 161 return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/') |
162 | 162 |
163 def has_symlink(): | 163 def has_symlink(): |
164 return hasattr(os, "symlink") | 164 return hasattr(os, "symlink") # FIXME: should also check file system and os |
165 | 165 |
166 def has_tla(): | 166 def has_tla(): |
167 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') | 167 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') |
168 | 168 |
169 def has_gpg(): | 169 def has_gpg(): |