Skip to content

Commit

Permalink
fix: robot tests detecting benign messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Nov 14, 2020
1 parent 2ffa105 commit 1180e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot-tests/robot-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Foreach ($Cmd in $GoodCmds) {

# Eventlog
$Result = Get-EventLog -LogName Application -Message *Raccine* -Newest 1
If ( $Result.Message -Match $Cmd ) {
If ( $Result.Message -Match $Cmd -and $Result.Message -Match 'malicious') {
Write-Host $Result.Message
Write-Host "Error: Eventlog entry of detection found"
exit 1
Expand Down

0 comments on commit 1180e22

Please sign in to comment.