commit | 45cabf37885e82ddfa0fbe9d76f6ec2996d2342d | [log] [tgz] |
---|---|---|
author | Zhiling Huang <[email protected]> | Sat Mar 10 00:50:03 2018 |
committer | Commit Bot <[email protected]> | Sat Mar 10 00:50:03 2018 |
tree | f6ac97b5b62e770d7676eb119df3c3957c40716c | |
parent | cdcb02624c340873b4d7d6e2564666e60f3aa856 [diff] [blame] |
Run pydeps check only in src. Bug: 803245 Change-Id: I645e82663991cd012ced5f19a056d08bbc2c797d Reviewed-on: https://chromium-review.googlesource.com/952281 Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Zhiling Huang <[email protected]> Cr-Commit-Position: refs/heads/master@{#542297}
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py index 732da0e..846f8413 100644 --- a/PRESUBMIT_test_mocks.py +++ b/PRESUBMIT_test_mocks.py
@@ -51,6 +51,7 @@ return errors + class MockInputApi(object): """Mock class for the InputApi class. @@ -75,6 +76,9 @@ self.change = MockChange([]) self.presubmit_local_path = os.path.dirname(__file__) + def CreateMockFileInPath(self, f_list): + self.os_path.exists = lambda x: x in f_list + def AffectedFiles(self, file_filter=None, include_deletes=False): for file in self.files: if file_filter and not file_filter(file):