Skip to content

Commit

Permalink
Added script for scanning through test logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Mar 18, 2013
1 parent 70b15bf commit c00ae0c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/scan_tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function Get-FileName($line)
{
$index = $_.IndexOf("log:");
return $_.Substring(0, $index) + "log"
}

# UnobservedTask exceptions
findstr /snip unobserved *.log | %{ Get-FileName $_ } | unique > unobserved_exceptions.txt

# ObjectDisposed exceptions
findstr /snip disposed *.log | %{ Get-FileName $_ } | unique > ode_exceptions.txt

# Network errors exceptions
findstr /snip unexpected error *.log | %{ Get-FileName $_ } | unique > unexpected.txt

0 comments on commit c00ae0c

Please sign in to comment.