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

Unified Diff: test/io.dart

Issue 1649663003: Add basic support for a configuration file. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 11 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
Index: test/io.dart
diff --git a/test/io.dart b/test/io.dart
index b3477430c585a23c35eedcc94514d52b08fdc551..1db00ed72b813afc1b20674cbfdecb255dda5914 100644
--- a/test/io.dart
+++ b/test/io.dart
@@ -102,18 +102,18 @@ StreamMatcher containsInOrder(Iterable<String> strings) =>
ScheduledProcess runTest(List args, {String reporter,
int concurrency, Map<String, String> environment,
bool forwardStdio: false}) {
- reporter ??= "expanded";
concurrency ??= 1;
var allArgs = [
p.absolute(p.join(packageDir, 'bin/test.dart')),
"--package-root=${p.join(packageDir, 'packages')}",
- "--concurrency=$concurrency",
- "--reporter=$reporter"
- ]..addAll(args);
+ "--concurrency=$concurrency"
+ ];
+ if (reporter != null) allArgs.add("--reporter=$reporter");
+ allArgs.addAll(args);
if (environment == null) environment = {};
- environment.putIfAbsent("_UNITTEST_USE_COLOR", () => "false");
+ environment.putIfAbsent("_DART_TEST_TESTING", () => "true");
var process = runDart(allArgs,
environment: environment,

Powered by Google App Engine
This is Rietveld 408576698