Mercurial > hg > mercurial-crew
changeset 22047:8fb6844a4ff1
tests: change some #ifs to #requires
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 06 Aug 2014 11:53:08 -0500 (2014-08-06) |
parents | 7a9cbb315d84 |
children | bfc09ea87f3e |
files | tests/test-check-code-hg.t tests/test-check-pyflakes.t tests/test-lock-badness.t tests/test-permissions.t tests/test-pull-permission.t tests/test-repair-strip.t |
diffstat | 6 files changed, 6 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-code-hg.t +++ b/tests/test-check-code-hg.t @@ -1,4 +1,4 @@ -#if test-repo +#require test-repo $ check_code="$TESTDIR"/../contrib/check-code.py $ cd "$TESTDIR"/.. @@ -13,5 +13,3 @@ Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob) Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob) Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob) - -#endif
--- a/tests/test-check-pyflakes.t +++ b/tests/test-check-pyflakes.t @@ -1,4 +1,4 @@ -#if test-repo pyflakes +#require test-repo pyflakes $ cd "`dirname "$TESTDIR"`" @@ -18,5 +18,3 @@ tests/hghave.py:*: 'ssl' imported but unused (glob) contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob) tests/filterpyflakes.py:58: undefined name 'undefinedname' - -#endif
--- a/tests/test-lock-badness.t +++ b/tests/test-lock-badness.t @@ -1,4 +1,4 @@ -#if unix-permissions no-root no-windows +#require unix-permissions no-root no-windows Prepare @@ -39,4 +39,3 @@ [255] $ chmod 700 a/.hg/store -#endif
--- a/tests/test-permissions.t +++ b/tests/test-permissions.t @@ -1,4 +1,4 @@ -#if unix-permissions no-root +#require unix-permissions no-root $ hg init t $ cd t @@ -70,5 +70,3 @@ $ chmod +rx dir $ cd .. - -#endif