diff options
author | Brett Chabot <brettchabot@android.com> | 2010-02-18 15:42:13 -0800 |
---|---|---|
committer | Brett Chabot <brettchabot@android.com> | 2010-02-20 18:38:30 -0800 |
commit | 08d13c3cbb0b250b84ca861edb462060556aead9 (patch) | |
tree | 9704cbf808666df16479b4b3a86e7e5c1dfd10e2 /test-runner | |
parent | e70f61b1160e953e5e4d18d30a463fa9ba821779 (diff) | |
download | frameworks_base-08d13c3cbb0b250b84ca861edb462060556aead9.zip frameworks_base-08d13c3cbb0b250b84ca861edb462060556aead9.tar.gz frameworks_base-08d13c3cbb0b250b84ca861edb462060556aead9.tar.bz2 |
Fix code coverage output message when running tests in non-raw mode.
Bug 2082804
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/src/android/test/InstrumentationTestRunner.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test-runner/src/android/test/InstrumentationTestRunner.java b/test-runner/src/android/test/InstrumentationTestRunner.java index 3e9cd9f..4ae98e6 100644 --- a/test-runner/src/android/test/InstrumentationTestRunner.java +++ b/test-runner/src/android/test/InstrumentationTestRunner.java @@ -480,8 +480,11 @@ public class InstrumentationTestRunner extends Instrumentation implements TestSu // needed mResults.putString(REPORT_KEY_COVERAGE_PATH, coverageFilePath); // also output a more user friendly msg + final String currentStream = mResults.getString( + Instrumentation.REPORT_KEY_STREAMRESULT); mResults.putString(Instrumentation.REPORT_KEY_STREAMRESULT, - String.format("Generated code coverage data to %s", coverageFilePath)); + String.format("%s\nGenerated code coverage data to %s", currentStream, + coverageFilePath)); } catch (ClassNotFoundException e) { reportEmmaError("Is emma jar on classpath?", e); } catch (SecurityException e) { |