Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 74e033f

Browse files
committed
Add condition for additional checks
1 parent dda1890 commit 74e033f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: script/validators/source_validator.py

+4
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ def validate_file(file_path):
244244
if not validator(file_path):
245245
file_status = False
246246

247+
relative_path = file_path.replace(PELOTON_DIR, '')
248+
if relative_path.startswith('/test/') and relative_path.endswith('.cpp'):
249+
file_status = check_tests(file_path)
250+
247251
return file_status
248252

249253

0 commit comments

Comments
 (0)