commit | 65beb2ebeddf0a442f55c275e0173b36bb774b7d | [log] [tgz] |
---|---|---|
author | keunyoung <keunyoung@google.com> | Tue May 14 10:39:29 2013 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue May 14 17:42:40 2013 +0000 |
tree | 588f4efc0e14e428c568ece3d5fef4edb02de9a3 | |
parent | 0d34be4a4996c1d6dc0dfbb232934c29c6db6e92 [diff] |
call sendStatus only when there is a result bug: 8964011 Change-Id: Ib0d368992c65f5c281076cde68c651035546a24d
diff --git a/suite/pts/deviceTests/ptsutil/src/com/android/pts/util/DeviceReportLog.java b/suite/pts/deviceTests/ptsutil/src/com/android/pts/util/DeviceReportLog.java index 43e93d3..80f3850 100644 --- a/suite/pts/deviceTests/ptsutil/src/com/android/pts/util/DeviceReportLog.java +++ b/suite/pts/deviceTests/ptsutil/src/com/android/pts/util/DeviceReportLog.java
@@ -38,8 +38,11 @@ public void deliverReportToHost(Instrumentation instrumentation) { Log.i(TAG, "deliverReportToHost"); - Bundle output = new Bundle(); - output.putString(PTS_RESULT, generateReport()); - instrumentation.sendStatus(INST_STATUS_IN_PROGRESS, output); + String report = generateReport(); + if (!report.equals("")) { + Bundle output = new Bundle(); + output.putString(PTS_RESULT, report); + instrumentation.sendStatus(INST_STATUS_IN_PROGRESS, output); + } } }