Bug 1598485 - Exclude files that are not part of the nss repository from the...

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

--HG--
extra : moz-landing-system : lando
parent 7b397c0b
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment