Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Unified Diff: tools/testing/dart/configuration.dart

Issue 3005013002: Added json result of test output to output debug directory. (Closed)
Patch Set: Added changes from Bill Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/testing/dart/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/configuration.dart
diff --git a/tools/testing/dart/configuration.dart b/tools/testing/dart/configuration.dart
index 4e1723aeff5a70553d2878c3eacf65c12a5528f2..b2de04409743c42cf8673ae687ca03fb67365a10 100644
--- a/tools/testing/dart/configuration.dart
+++ b/tools/testing/dart/configuration.dart
@@ -52,6 +52,7 @@ class Configuration {
this.useDart2JSWithKernelInSsa,
this.writeDebugLog,
this.writeTestOutcomeLog,
+ this.writeResultLog,
this.drtPath,
this.chromePath,
this.safariPath,
@@ -74,6 +75,7 @@ class Configuration {
this.packageRoot,
this.suiteDirectory,
this.builderTag,
+ this.outputDirectory,
this.reproducingArguments})
: _packages = packages,
_timeout = timeout;
@@ -115,6 +117,7 @@ class Configuration {
final bool useDart2JSWithKernelInSsa;
final bool writeDebugLog;
final bool writeTestOutcomeLog;
+ final bool writeResultLog;
// Various file paths.
@@ -152,6 +155,7 @@ class Configuration {
return _packages;
}
+ final String outputDirectory;
final String packageRoot;
final String suiteDirectory;
final String builderTag;
@@ -419,6 +423,35 @@ class Configuration {
return normal;
}
+
+ Map _summaryMap;
+
+ /// [toSummaryMap] returns a map of configurations important to the running
+ /// of a test. Flags and properties used for output are not included.
+ /// Boolean flags that are false are not included in the map. The summary map
+ /// can be used to serialize to json for test-output logging.
+ Map toSummaryMap() {
+ if (_summaryMap == null) {
+ _summaryMap = {
+ 'mode': mode.name,
+ 'arch': architecture.name,
+ 'compiler': compiler.name,
+ 'runtime': runtime.name,
+ 'checked': isChecked,
+ 'strong': isStrong,
+ 'host_checked': isHostChecked,
+ 'minified': isMinified,
+ 'csp': isCsp,
+ 'system': system.name,
+ 'vm_options': vmOptions,
+ 'use_sdk': useSdk,
+ 'builder_tag': builderTag,
+ 'fast_startup': useFastStartup,
+ 'timeout': timeout
+ };
+ }
+ return _summaryMap;
+ }
}
class Architecture {
« no previous file with comments | « no previous file | tools/testing/dart/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698