From a6dfd451401211f514dacf57a2260600f0d4dc81 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 27 Jan 2015 09:27:04 +0100 Subject: [PATCH] Actually in case of any error, the file should be empty AND makefile should return error code 1 --- tests/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index 81b19aae0..b533fb07d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -12,7 +12,9 @@ all: clean run-basic-tests: all ant test adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml 2>/dev/null > linphone-junit-report.xml + if [ ! -s linphone-junit-report.xml ]; then exit 1; fi run-all-tests: all adb shell am instrument -w -e size large org.linphone.test/com.zutubi.android.junitreport.JUnitReportTestRunner adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml 2>/dev/null > linphone-junit-report.xml + if [ ! -s linphone-junit-report.xml ]; then exit 1; fi