Added more info to the Summarizer.

Bug: 2889572
Change-Id: If02dbdf90e8b8717370b5586cc72be235c93db79
This commit is contained in:
Maksymilian Osowski
2010-08-10 16:39:04 +01:00
parent 0186c93a6e
commit 2e64bb7afd
3 changed files with 51 additions and 13 deletions

View File

@@ -93,6 +93,7 @@ public class ManagerService extends Service {
break;
case MSG_ALL_TESTS_FINISHED:
mSummarizer.setTestsRelativePath(mAllTestsRelativePath);
mSummarizer.summarize();
Intent intent = new Intent(ManagerService.this, TestsListActivity.class);
intent.setAction(Intent.ACTION_SHUTDOWN);
@@ -121,6 +122,8 @@ public class ManagerService extends Service {
private String mCurrentlyRunningTest;
private int mCurrentlyRunningTestIndex;
private String mAllTestsRelativePath;
@Override
public void onCreate() {
super.onCreate();
@@ -131,6 +134,8 @@ public class ManagerService extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
mAllTestsRelativePath = intent.getStringExtra("path");
assert mAllTestsRelativePath != null;
return START_STICKY;
}