diff options
author | Yuexi Ma <yuexima@google.com> | 2019-11-24 17:22:07 -0800 |
---|---|---|
committer | Yuexi Ma <yuexima@google.com> | 2019-11-25 21:23:58 +0000 |
commit | 80ad11e381ac80e059c5395466d15e1d66e78fc7 (patch) | |
tree | 49c0bae773877b3a2d59bea31bced701828823d3 | |
parent | f15666b80f615e037ba4180a5809c9fd485c5c96 (diff) | |
download | csuite-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.java | 3 |
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(); |