mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 23:54:12 +03:00
tests: change some #ifs to #requires
This commit is contained in:
parent
11be5cc27c
commit
241d2dc08e
@ -1,4 +1,4 @@
|
|||||||
#if test-repo
|
#require test-repo
|
||||||
|
|
||||||
$ check_code="$TESTDIR"/../contrib/check-code.py
|
$ check_code="$TESTDIR"/../contrib/check-code.py
|
||||||
$ cd "$TESTDIR"/..
|
$ cd "$TESTDIR"/..
|
||||||
@ -13,5 +13,3 @@ New errors are not allowed. Warnings are strongly discouraged.
|
|||||||
Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
|
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/_readers.py it has no-che?k-code (glob)
|
||||||
Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob)
|
Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if test-repo pyflakes
|
#require test-repo pyflakes
|
||||||
|
|
||||||
$ cd "`dirname "$TESTDIR"`"
|
$ cd "`dirname "$TESTDIR"`"
|
||||||
|
|
||||||
@ -18,5 +18,3 @@ run pyflakes on all tracked files ending in .py or without a file ending
|
|||||||
tests/hghave.py:*: 'ssl' imported but unused (glob)
|
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)
|
contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob)
|
||||||
tests/filterpyflakes.py:58: undefined name 'undefinedname'
|
tests/filterpyflakes.py:58: undefined name 'undefinedname'
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if unix-permissions no-root no-windows
|
#require unix-permissions no-root no-windows
|
||||||
|
|
||||||
Prepare
|
Prepare
|
||||||
|
|
||||||
@ -39,4 +39,3 @@ Pushing to a local read-only repo that can't be locked
|
|||||||
[255]
|
[255]
|
||||||
|
|
||||||
$ chmod 700 a/.hg/store
|
$ chmod 700 a/.hg/store
|
||||||
#endif
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if unix-permissions no-root
|
#require unix-permissions no-root
|
||||||
|
|
||||||
$ hg init t
|
$ hg init t
|
||||||
$ cd t
|
$ cd t
|
||||||
@ -70,5 +70,3 @@ Reenable perm to allow deletion:
|
|||||||
$ chmod +rx dir
|
$ chmod +rx dir
|
||||||
|
|
||||||
$ cd ..
|
$ cd ..
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if unix-permissions no-root
|
#require unix-permissions no-root
|
||||||
|
|
||||||
$ hg init a
|
$ hg init a
|
||||||
$ cd a
|
$ cd a
|
||||||
@ -30,5 +30,3 @@
|
|||||||
1 files, 1 changesets, 1 total revisions
|
1 files, 1 changesets, 1 total revisions
|
||||||
|
|
||||||
$ cd ..
|
$ cd ..
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if unix-permissions no-root
|
#require unix-permissions no-root
|
||||||
|
|
||||||
$ echo "[extensions]" >> $HGRCPATH
|
$ echo "[extensions]" >> $HGRCPATH
|
||||||
$ echo "mq=">> $HGRCPATH
|
$ echo "mq=">> $HGRCPATH
|
||||||
@ -130,5 +130,3 @@
|
|||||||
2 files, 2 changesets, 2 total revisions
|
2 files, 2 changesets, 2 total revisions
|
||||||
|
|
||||||
$ cd ..
|
$ cd ..
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user