mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
scripts: Don't run practracker in git hooks
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
8ae0ecbd6a
commit
887dc6abb0
1 changed files with 2 additions and 17 deletions
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
# This is pre-commit git hook script that prevents commiting your changeset if
|
||||
# it fails our code formatting, changelog entry formatting, module include
|
||||
# rules, or best practices tracker.
|
||||
# rules, etc...
|
||||
|
||||
# Run only if this environment variable is set.
|
||||
if [ -z "$TOR_EXTRA_PRE_COMMIT_CHECKS" ]; then
|
||||
|
@ -54,13 +54,6 @@ if [ -e scripts/maint/checkShellScripts.sh ]; then
|
|||
scripts/maint/checkShellScripts.sh
|
||||
fi
|
||||
|
||||
# Always run the practracker unit tests
|
||||
PT_DIR=scripts/maint/practracker
|
||||
|
||||
if [ -e "${PT_DIR}/test_practracker.sh" ]; then
|
||||
"${PT_DIR}/test_practracker.sh"
|
||||
fi
|
||||
|
||||
if [ -e scripts/maint/checkSpaceTest.sh ]; then
|
||||
scripts/maint/checkSpaceTest.sh
|
||||
fi
|
||||
|
@ -79,19 +72,11 @@ printf "Modified tor-owned source files:\\n%s\\n" "$CHECK_FILES"
|
|||
perl scripts/maint/checkSpace.pl -C \
|
||||
$CHECK_FILES
|
||||
|
||||
# This makes sure that we are only including things we're allowed to include.
|
||||
if test -e scripts/maint/practracker/includes.py; then
|
||||
python scripts/maint/practracker/includes.py
|
||||
fi
|
||||
|
||||
# Only call practracker if ${PT_DIR}/.enable_practracker_in_hooks exists
|
||||
# We do this check so that we can enable practracker in hooks in master, and
|
||||
# disable it on maint branches
|
||||
if [ -e "${PT_DIR}/practracker.py" ]; then
|
||||
if [ -e "${PT_DIR}/.enable_practracker_in_hooks" ]; then
|
||||
python3 "${PT_DIR}/practracker.py" "$workdir"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e scripts/coccinelle/check_cocci_parse.sh ]; then
|
||||
|
||||
# Run a verbose cocci parse check on the changed files
|
||||
|
|
Loading…
Add table
Reference in a new issue