Add runtime to CtsDeqpTestCases
authorAaron Holden <aaronholden@google.com>
Sat, 12 Nov 2016 03:16:19 +0000 (19:16 -0800)
committerAaron Holden <aaronholden@google.com>
Sat, 12 Nov 2016 03:16:19 +0000 (19:16 -0800)
Test: cts-tradefed run cts -m CtsDeqpTestCases
Bug:32843094
Change-Id: Id55dfbdda2de83cdd59e07bb506bc6ea45499c0f

android/cts/runner/src/com/drawelements/deqp/runner/DeqpTestRunner.java

index 67af482..9050705 100644 (file)
@@ -2031,7 +2031,7 @@ public class DeqpTestRunner implements IBuildReceiver, IDeviceTest,
         }
 
         mRemainingTests = new LinkedList<>(mTestInstances.keySet());
-
+        long startTime = System.currentTimeMillis();
         listener.testRunStarted(getId(), mRemainingTests.size());
 
         try {
@@ -2062,7 +2062,7 @@ public class DeqpTestRunner implements IBuildReceiver, IDeviceTest,
             uninstallTestApk();
         }
 
-        listener.testRunEnded(0, emptyMap);
+        listener.testRunEnded(System.currentTimeMillis() - startTime, emptyMap);
     }
 
    /**