summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2013-08-20 14:49:58 -0700
committerGuang Zhu <guangzhu@google.com>2013-08-20 14:51:37 -0700
commitdba37a78454da33c43921dd289df3b9e8080ed8a (patch)
tree23ae712a086f14fc6e3b36e1e0aadb241bda5216
parent3bfb06f3c03fd9e58f50fda72eb2c69bd153b690 (diff)
downloadtesting-dba37a78454da33c43921dd289df3b9e8080ed8a.tar.gz
Tweak UI automator runner output formatandroid-4.4_r0.7
For uncaught exceptions, output exception message as shortMsg Change-Id: Ied019d3170a5afc9ebeab8251f66f69d9a9c2282
-rw-r--r--uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/UiAutomatorTestRunner.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/UiAutomatorTestRunner.java b/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/UiAutomatorTestRunner.java
index ff3ed69..ef167f9 100644
--- a/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/UiAutomatorTestRunner.java
+++ b/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/UiAutomatorTestRunner.java
@@ -162,6 +162,7 @@ public class UiAutomatorTestRunner {
} catch (Throwable t) {
// catch all exceptions so a more verbose error message can be outputted
resultPrinter.printUnexpectedError(t);
+ testRunOutput.putString("shortMsg", t.getMessage());
} finally {
long runTime = SystemClock.uptimeMillis() - startTime;
resultPrinter.print(testRunResult, runTime, testRunOutput);