Skip to content

Commit df3113e

Browse files
Sergey RyabininSergeyRyabinin
authored andcommitted
Do not check tests for hardcoded endpoints
1 parent 309e18a commit df3113e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/endpoints_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def CheckFile(inputFile):
115115
RootDir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)));
116116
for root, dirnames, fileNames in os.walk(RootDir):
117117
for fileName in fileNames:
118-
if fileName.endswith(('.h', '.cpp')):
118+
if not root.endswith('-tests') and fileName.endswith(('.h', '.cpp')):
119119
targetFile = os.path.join(root, fileName);
120120
exitCode |= CheckFile(targetFile);
121121
print "Finished checking hard coded endpoints in source files with exit code",exitCode,".";

0 commit comments

Comments
 (0)