aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuexi Ma <yuexima@google.com>2019-11-24 17:22:07 -0800
committerYuexi Ma <yuexima@google.com>2019-11-25 21:23:58 +0000
commit80ad11e381ac80e059c5395466d15e1d66e78fc7 (patch)
tree49c0bae773877b3a2d59bea31bced701828823d3
parentf15666b80f615e037ba4180a5809c9fd485c5c96 (diff)
downloadcsuite-80ad11e381ac80e059c5395466d15e1d66e78fc7.tar.gz
Set test suite module count in result listener
The expected module count is required to be equal to the actual number of modules executed when the test is executed in ATP as a TradeFed suite module. Otherwise passing tests would still be reported as FAIL in ATP. Change-Id: I63cfecfc021232a7ea2af36fe1882e42f44c7f45 Fix: 144936360 Test: forrest
-rw-r--r--harness/src/main/java/com/android/compatibility/AppCompatibilityTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/harness/src/main/java/com/android/compatibility/AppCompatibilityTest.java b/harness/src/main/java/com/android/compatibility/AppCompatibilityTest.java
index a8e7b3e..1af011e 100644
--- a/harness/src/main/java/com/android/compatibility/AppCompatibilityTest.java
+++ b/harness/src/main/java/com/android/compatibility/AppCompatibilityTest.java
@@ -199,7 +199,8 @@ public abstract class AppCompatibilityTest
CLog.d("Completed filtering apkList. Number of items: %s", apkList.size());
long start = System.currentTimeMillis();
- listener.testRunStarted(mTestLabel, 0);
+ // Start test run for 1 suite module.
+ listener.testRunStarted(mTestLabel, 1);
mLogcat = new LogcatReceiver(getDevice(), LOGCAT_SIZE_BYTES, 0);
mLogcat.start();