mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
fef5e81c64
Summary: This diff removes "unset HGRCPATH" to try to run tests in a more controlled environment. And skip the test if system HG looks broken. Test Plan: arc unit Reviewers: simpkins, #mercurial, stash Reviewed By: stash Subscribers: net-systems-diffs@fb.com, mjpieters, medson Differential Revision: https://phabricator.intern.facebook.com/D5263484 Signature: t1:5263484:1497604378:28ec94c33ba77680c8d2325a8fa36457e0eb8c91
29 lines
728 B
Perl
29 lines
728 B
Perl
#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
|
|
|
|
$ hg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
|
|
[1]
|
|
|
|
look for python scripts with execute bit but not shebang
|
|
|
|
$ hg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
|
|
[1]
|
|
|
|
look for shell scripts with execute bit but not shebang
|
|
|
|
$ hg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
|
|
[1]
|
|
|
|
look for non scripts with no shebang
|
|
|
|
$ hg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")'
|
|
[1]
|