Avoid collecting tests then running for CtsMediaBitStream
CtsmediaBitStream internally call AndroidJUnitTest so there
is no need for re-run or doing collect then run.
Disable re-run for faster run.
Test: ./cts-tradefed run cts-suite --skip-preconditions -m
CtsMediaBitstreamsTestCases
Bug: 37211399
Change-Id: Icd204a04417b26d95d7a82c426e24c00f5f8a02c
diff --git a/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ReportProcessor.java b/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ReportProcessor.java
index bb3daa7..af1fcc8 100644
--- a/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ReportProcessor.java
+++ b/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ReportProcessor.java
@@ -132,6 +132,8 @@
instrTest.addIncludeFilter(fullTestName);
instrTest.setTestTimeout(testTimeout);
instrTest.setShellTimeout(shellTimeout);
+ // disable rerun mode to avoid collecting tests first then running.
+ instrTest.setRerunMode(false);
for (Entry<String, String> e : getArgs().entrySet()) {
instrTest.addInstrumentationArg(e.getKey(), e.getValue());
}