summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-02-04 18:14:09 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-02-04 18:20:15 +0530
commitbce6f9b76287ccea56700e12f4bfbf3c77d918e5 (patch)
tree7e05333395bc46f18ec3155de4d7244ed8d992ba /test-art-target-test.sh
parent8d66c0c5c4efc18b3474bf7aace120e710a959cc (diff)
downloadart-build-tests.sh-bce6f9b76287ccea56700e12f4bfbf3c77d918e5.tar.gz
test-art-target-test: Capture failing gtest
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'test-art-target-test.sh')
-rwxr-xr-xtest-art-target-test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh
index 9443d43..d00c0f7 100755
--- a/test-art-target-test.sh
+++ b/test-art-target-test.sh
@@ -215,6 +215,8 @@ ccache -s
if [[ $failed -ne 0 ]]; then
cat $WORKSPACE/build-logs-32.txt | grep -i "FAILED!" > $WORKSPACE/failed-test.txt
cat $WORKSPACE/build-logs-64.txt | grep -i "FAILED!" >> $WORKSPACE/failed-test.txt
+ grep " FAILED" $WORKSPACE/build-logs-32.txt | grep "^test" | sed -e "s/ FAILED//g" | grep gtest >> $WORKSPACE/failed-test.txt
+ grep " FAILED" $WORKSPACE/build-logs-64.txt | grep "^test" | sed -e "s/ FAILED//g" | grep gtest >> $WORKSPACE/failed-test.txt
sed -i "s/.*test\///g" $WORKSPACE/failed-test.txt
sed -i "s/: FAILED\!//g" $WORKSPACE/failed-test.txt
IFS=';' read -r -a ignored_tests <<< $CURRENT_FAILING_ART_TESTS
@@ -225,6 +227,11 @@ if [[ $failed -ne 0 ]]; then
while read p; do
if ! grep -i $p $WORKSPACE/ignored_tests.txt; then
actually_failed=1
+ if echo $p | grep gtest; then
+ echo "gtest test has failed"
+ else
+ echo "run-test test has failed"
+ fi
fi
done < $WORKSPACE/failed-test.txt