Actually in case of any error, the file should be empty AND makefile should return error code 1

This commit is contained in:
Gautier Pelloux-Prayer 2015-01-27 09:27:04 +01:00
parent 73408ebab8
commit a6dfd45140

View file

@ -12,7 +12,9 @@ all: clean
run-basic-tests: all run-basic-tests: all
ant test ant test
adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml 2>/dev/null > linphone-junit-report.xml 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 run-all-tests: all
adb shell am instrument -w -e size large org.linphone.test/com.zutubi.android.junitreport.JUnitReportTestRunner 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 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