##// END OF EJS Templates
tests: enforce use of $PYTHON in tests
Augie Fackler -
r32939:cad62cb3 default
parent child Browse files
Show More
@@ -5,9 +5,20 b''
5 5
6 6 look for python scripts that do not use /usr/bin/env
7 7
8 $ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python")'
8 $ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python") - **/*.t'
9 9 [1]
10 10
11 In tests, enforce $PYTHON and *not* /usr/bin/env python or similar:
12 $ hg files 'set:grep(r"#!.*?python") and **/*.t' \
13 > -X tests/test-check-execute.t \
14 > -X tests/test-check-module-imports.t \
15 > -X tests/test-check-pyflakes.t \
16 > -X tests/test-check-shbang.t
17 [1]
18
19 The above exclusions are because they're looking for files that
20 contain Python but don't end in .py - please avoid adding more.
21
11 22 look for shell scripts that do not use /bin/sh
12 23
13 24 $ hg files 'set:grep(r"^#!.*/bi{1}n/sh") and not grep(r"^#!/bi{1}n/sh")'
General Comments 0
You need to be logged in to leave comments. Login now