Skip to content

Instantly share code, notes, and snippets.

@julianhyde
Created May 17, 2012 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julianhyde/2720282 to your computer and use it in GitHub Desktop.
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
#!/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