Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08d13c3c authored by Brett Chabot's avatar Brett Chabot
Browse files

Fix code coverage output message when running tests in non-raw mode.

Bug 2082804
parent e70f61b1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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) {