Merge pull request #856 from antmicro/kokoro_faillogs

kokoro: Pack failing test cases instead of vivado logs
This commit is contained in:
Tim Ansell 2019-06-12 13:53:35 +02:00 committed by GitHub
commit 4fc78e9eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 14 deletions

View File

@ -12,7 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,7 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,7 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -54,18 +54,19 @@ echo "----------------------------------------"
# which is well before the 05x INT fuzzers complete.
export MAX_VIVADO_PROCESS=$((CORES/2 < 20 ? CORES/2 : 20))
set -x +e
script --return --flush --command "make -j $CORES MAX_VIVADO_PROCESS=$MAX_VIVADO_PROCESS" -
tmp=`mktemp`
script --return --flush --command "make -j $CORES MAX_VIVADO_PROCESS=$MAX_VIVADO_PROCESS" $tmp
DATABASE_RET=$?
set +x -e
echo "----------------------------------------"
# Collect the Vivado logs into one tgz archive
echo "Collecting Vivado logs"
find . -name vivado.log | xargs tar -czvf vivado.tgz
echo "----------------------------------------"
if [[ $DATABASE_RET != 0 ]] ; then
# Collect the Vivado logs into one tgz archive
echo "Packing failing test cases"
grep "recipe for target" $tmp | awk 'match($0,/recipe for target.*'\''(.*)\/run.ok'\''/,res) {print res[1]}' | xargs tar -zcf fails.tgz
echo "----------------------------------------"
echo "A failure occurred during Database build."
echo "----------------------------------------"
rm $tmp
exit $DATABASE_RET
fi

View File

@ -15,7 +15,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,7 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,7 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,7 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
regex: "**/fuzzers/*.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"