Created
May 17, 2012 17:15
-
-
Save julianhyde/2720282 to your computer and use it in GitHub Desktop.
Script to parse output from mondrian's megatest command and generate a sorted list of failed tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# testExceptions | |
# Parses mondrian's megatest.log; | |
# generates a list of failed tests, one per line. | |
awk ' | |
/^ \[java\] [0-9]+) / { | |
s = $0; | |
gsub(/[^)]*) /, "", s); | |
gsub(/).*$/, "", s); | |
split(s, a, /\(/) | |
print a[2] "." a[1] | |
} | |
' "$1" | sort | |
# End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment