mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
Simple test for defer.setDebugging(True) calls
This commit is contained in:
parent
9979a7dca3
commit
d641aef2a3
7
Makefile
7
Makefile
@ -66,7 +66,12 @@ smoketest:
|
|||||||
|
|
||||||
.PHONY: code-checks
|
.PHONY: code-checks
|
||||||
#code-checks: build version-and-path check-interfaces check-miscaptures -find-trailing-spaces -check-umids pyflakes
|
#code-checks: build version-and-path check-interfaces check-miscaptures -find-trailing-spaces -check-umids pyflakes
|
||||||
code-checks: check-miscaptures -find-trailing-spaces -check-umids pyflakes
|
code-checks: check-debugging check-miscaptures -find-trailing-spaces -check-umids pyflakes
|
||||||
|
|
||||||
|
.PHONY: check-debugging
|
||||||
|
check-debugging:
|
||||||
|
misc/coding_tools/check-debugging.sh
|
||||||
|
@echo
|
||||||
|
|
||||||
.PHONY: check-miscaptures
|
.PHONY: check-miscaptures
|
||||||
check-miscaptures:
|
check-miscaptures:
|
||||||
|
9
misc/coding_tools/check-debugging.sh
Executable file
9
misc/coding_tools/check-debugging.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
OUTPUT=$(grep -R '\.setDebugging(True)' src/allmydata)
|
||||||
|
|
||||||
|
if [[ -n $OUTPUT ]] ; then
|
||||||
|
echo "Do not use defer.setDebugging(True) in production:"
|
||||||
|
echo $OUTPUT
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user