Skip to content

Commit 2941d84

Browse files
committed
Actually export print_surefire_reports.sh.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=174366533
1 parent c0557df commit 2941d84

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

util/print_surefire_reports.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
# Ignore passing tests.
6+
files=($(
7+
grep -e 'failures=.[^0]' -e 'errors=.[^0]' */target/surefire-reports/*.xml -l |
8+
sed -e 's/TEST-//; s/.xml$//'))
9+
10+
for file in "${files[@]}"; do
11+
# Dump file-output.txt and file.txt.
12+
# Use tail to include a filename header before each (and maybe truncate).
13+
tail -n 9999 "${file}"*.txt
14+
done

0 commit comments

Comments
 (0)