Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Nov 8, 2023
1 parent 551d84b commit de835af
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cnf-certification-test/performance/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,18 @@ func filterProbeProcesses(allProcesses []*crclient.Process, cut *provider.Contai
}
// remove all exec probes and their children from the process list
for _, p := range allProcesses {
isExecProbeProcess := false
for _, parentProbePid := range execProbeProcesses {
if p.Pid == parentProbePid || p.PPid == parentProbePid {
// skip exec probe processes (child or parent)
continue
// this process is part of an exec probe (child or parent), break
isExecProbeProcess = true
break
}
notExecProbeProcesses = append(notExecProbeProcesses, p)
}
if isExecProbeProcess {
continue
}
notExecProbeProcesses = append(notExecProbeProcesses, p)
}
return notExecProbeProcesses, compliantObjects
}

0 comments on commit de835af

Please sign in to comment.