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

Unified Diff: lib/src/runner/configuration.dart

Issue 1266493007: Set concurrency to 1 in Configuration in debug mode. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/configuration.dart
diff --git a/lib/src/runner/configuration.dart b/lib/src/runner/configuration.dart
index a50931e534f09cddcdeb865b6cbedd8b5c0e439c..f2a53f927f2707635998328cf31605898fd9e458 100644
--- a/lib/src/runner/configuration.dart
+++ b/lib/src/runner/configuration.dart
@@ -153,9 +153,13 @@ class Configuration {
/// Throws a [FormatException] if [args] are invalid.
Configuration.parse(List<String> args)
: _options = _parser.parse(args) {
- _concurrency = _options['concurrency'] == null
- ? _defaultConcurrency
- : _wrapFormatException('concurrency', int.parse);
+ if (pauseAfterLoad) {
+ _concurrency = 1;
+ } else if (_options['concurrency'] == null) {
+ _concurrency = _defaultConcurrency;
+ } else {
+ _concurrency = _wrapFormatException('concurrency', int.parse);
+ }
if (_options["name"] != null && _options["plain-name"] != null) {
throw new FormatException(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698