Fix T401 and T402 errors
Fix all the one line docstring errors in T401 and T402, now
we no longer ignore any of our own rules in hacking.py
Fix run_tests.sh to pick up the 'stress' directory, which tox
does for pep8. Additional fixes to the stress tests for T4* tests
Change-Id: Ie569a924e8eb355afbbd9b244f77dec34061b5cb
diff --git a/tools/hacking.py b/tools/hacking.py
index ec64951..617682d 100755
--- a/tools/hacking.py
+++ b/tools/hacking.py
@@ -273,7 +273,8 @@
T401
"""
pos = max([physical_line.find(i) for i in DOCSTRING_TRIPLE]) # start
- if (pos != -1 and len(physical_line) > pos + 1):
+ end = max([physical_line[-4:-1] == i for i in DOCSTRING_TRIPLE]) # end
+ if (pos != -1 and end and len(physical_line) > pos + 4):
if (physical_line[pos + 3] == ' '):
return (pos, "T401: one line docstring should not start"
" with a space")