mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
fb-hgext: remove some useless scripts from fb-hgext
Summary: These scripts are not necessary anymore. Depends on D6675381 Test Plan: - less complaints from styling tests Reviewers: #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D6675405
This commit is contained in:
parent
9aa3ee0721
commit
4d47dfcb56
@ -1,28 +0,0 @@
|
||||
#require test-repo execbit
|
||||
|
||||
$ . $TESTDIR/require-core-hg.sh contrib/check-config.py
|
||||
|
||||
This file is backported from mercurial/tests/test-check-execute.t.
|
||||
It differs slightly to fix paths.
|
||||
|
||||
$ . "$TESTDIR/helper-testrepo.sh"
|
||||
|
||||
look for python scripts without the execute bit
|
||||
|
||||
$ testrepohg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
|
||||
[1]
|
||||
|
||||
look for python scripts with execute bit but not shebang
|
||||
|
||||
$ testrepohg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
|
||||
[1]
|
||||
|
||||
look for shell scripts with execute bit but not shebang
|
||||
|
||||
$ testrepohg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
|
||||
[1]
|
||||
|
||||
look for non scripts with no shebang
|
||||
|
||||
$ testrepohg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")'
|
||||
[1]
|
@ -1,21 +0,0 @@
|
||||
#require test-repo pyflakes
|
||||
|
||||
$ . $TESTDIR/require-core-hg.sh tests/filterpyflakes.py
|
||||
|
||||
This file is backported from mercurial/tests/test-check-pyflakes.t.
|
||||
It differs slightly to fix paths.
|
||||
|
||||
$ . "$TESTDIR/helper-testrepo.sh"
|
||||
|
||||
run pyflakes on all tracked files ending in .py or without a file ending
|
||||
(skipping binary file random-seed)
|
||||
|
||||
$ testrepohg locate 'set:**.py or grep("^#!.*python")' > "$TESTTMP/files1"
|
||||
$ if [ -n "$LINTFILES" ]; then
|
||||
> printf "$LINTFILES" > "$TESTTMP/files2"
|
||||
> join "$TESTTMP/files1" "$TESTTMP/files2"
|
||||
> else
|
||||
> cat "$TESTTMP/files1"
|
||||
> fi \
|
||||
> | xargs pyflakes 2>/dev/null | "$RUNTESTDIR/filterpyflakes.py"
|
||||
|
@ -1,15 +0,0 @@
|
||||
#require test-repo
|
||||
|
||||
This file is backported from mercurial/tests/test-check-shbang.t.
|
||||
|
||||
$ . "$TESTDIR/helper-testrepo.sh"
|
||||
|
||||
look for python scripts that do not use /usr/bin/env
|
||||
|
||||
$ testrepohg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python")'
|
||||
[1]
|
||||
|
||||
look for shell scripts that do not use /bin/sh
|
||||
|
||||
$ testrepohg files 'set:grep(r"^#!.*/bi{1}n/sh") and not grep(r"^#!/bi{1}n/sh")'
|
||||
[1]
|
Loading…
Reference in New Issue
Block a user