commit | ac07fc793623c0e26f1ccead9ead2a9370f2815d | [log] [tgz] |
---|---|---|
author | Stuart Scott <stuartscott@google.com> | Fri Feb 13 14:05:03 2015 -0800 |
committer | Stuart Scott <stuartscott@google.com> | Fri Feb 13 14:09:43 2015 -0800 |
tree | 58bb482e3d31ee908b6515c9d09f150f2fd8d77c | |
parent | d3c6c22691b7387483c4cc44ecf5f3d0d95aa931 [diff] |
Fix uihost tests They were broken apparently. Change-Id: I2b39d745d45414659f7b8dc7fc8f20795e993560
diff --git a/suite/cts/hostTests/uihost/src/com/android/cts/uihost/TaskSwitchingTest.java b/suite/cts/hostTests/uihost/src/com/android/cts/uihost/TaskSwitchingTest.java index 894b824..2d33436 100644 --- a/suite/cts/hostTests/uihost/src/com/android/cts/uihost/TaskSwitchingTest.java +++ b/suite/cts/hostTests/uihost/src/com/android/cts/uihost/TaskSwitchingTest.java
@@ -115,7 +115,9 @@ @Override public void testEnded(TestIdentifier test, Map<String, String> testMetrics) { // necessary as testMetrics passed from CollectingTestListerner is empty - mCtsReport = testMetrics.get("CTS_TEST_RESULT"); + if (testMetrics.containsKey("CTS_TEST_RESULT")) { + mCtsReport = testMetrics.get("CTS_TEST_RESULT"); + } super.testEnded(test, testMetrics); } }