diff options
author | Andi-Bogdan Postelnicu <bpostelnicu@mozilla.com> | 2019-12-09 15:23:12 +0000 |
---|---|---|
committer | Andi-Bogdan Postelnicu <bpostelnicu@mozilla.com> | 2019-12-09 15:23:12 +0000 |
commit | 2e37493098d201d34d32683b9f7a3ac361458210 (patch) | |
tree | ba3e676f6cf1a1621a175703246209948e02f37a /mach | |
parent | 62e65f451bc91449e5ac400784e481764f715836 (diff) | |
download | nss-hg-2e37493098d201d34d32683b9f7a3ac361458210.tar.gz |
Bug 1598485 - Exclude files that are not part of the nss repository from the analysis artifact. r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D55963
Diffstat (limited to 'mach')
-rwxr-xr-x | mach | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -244,6 +244,9 @@ class coverityAction(argparse.Action): print('Skipping CID: {0} from file: {1} since it\'s not related with the current patch.'.format( issue['stateOnServer']['cid'], issue['strippedMainEventFilePathname'])) continue + # If path does not start with `cwd` skip it + if not path.startswith(cwd): + continue path = relpath(path) if path in files_list: files_list[path]['warnings'].append(build_element(issue)) |