ACS-3363 Output TAS logs for failed tests. (#1396)

This commit is contained in:
Tom Page
2022-09-16 10:21:32 +01:00
committed by GitHub
parent a410dbe538
commit e66263a5a8
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
TAS_DIRECTORY=$1
cd ${TAS_DIRECTORY}
failures=$(grep 'status="FAIL"' target/surefire-reports/testng-results.xml | sed 's|^.*[ ]name="\([^"]*\)".*$|\1|g')
for failure in ${failures}
do
cat target/reports/alfresco-tas.log | sed '/STARTING Test: \['${failure}'\]/,/ENDING Test: \['${failure}'\]/!d;/ENDING Test: \['${failure}'\]/q'
done