summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmach3
1 files changed, 3 insertions, 0 deletions
diff --git a/mach b/mach
index feae103f9..b484e1fa4 100755
--- a/mach
+++ b/mach
@@ -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))