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

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 2054153002: Fixed Linux bots to disable GPU otherwise process is terminated (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed Comment Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « tools/dartium/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 var fullHtmlPath = 1331 var fullHtmlPath =
1332 _getUriForBrowserTest(htmlPath_subtest, subtestName).toString(); 1332 _getUriForBrowserTest(htmlPath_subtest, subtestName).toString();
1333 1333
1334 if (runtime == "drt") { 1334 if (runtime == "drt") {
1335 var dartFlags = []; 1335 var dartFlags = [];
1336 var contentShellOptions = []; 1336 var contentShellOptions = [];
1337 1337
1338 contentShellOptions.add('--no-timeout'); 1338 contentShellOptions.add('--no-timeout');
1339 contentShellOptions.add('--dump-render-tree'); 1339 contentShellOptions.add('--dump-render-tree');
1340 1340
1341 // Disable the GPU under Linux and Dartium. If the GPU is enabled,
1342 // Chrome may send a termination signal to a test. The test will be
1343 // terminated if a machine (bot) doesn't have a GPU or if a test is
1344 // still running after a certain period of time.
1345 if (configuration['system'] == 'linux' &&
1346 configuration['runtime'] == 'drt') {
1347 contentShellOptions.add('--disable-gpu');
1348 }
1341 if (compiler == 'none') { 1349 if (compiler == 'none') {
1342 dartFlags.add('--ignore-unrecognized-flags'); 1350 dartFlags.add('--ignore-unrecognized-flags');
1343 if (configuration["checked"]) { 1351 if (configuration["checked"]) {
1344 dartFlags.add('--enable_asserts'); 1352 dartFlags.add('--enable_asserts');
1345 dartFlags.add("--enable_type_checks"); 1353 dartFlags.add("--enable_type_checks");
1346 } 1354 }
1347 dartFlags.addAll(vmOptions); 1355 dartFlags.addAll(vmOptions);
1348 } 1356 }
1349 1357
1350 commandSet.add(CommandBuilder.instance.getContentShellCommand( 1358 commandSet.add(CommandBuilder.instance.getContentShellCommand(
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 for (var key in PATH_REPLACEMENTS.keys) { 2462 for (var key in PATH_REPLACEMENTS.keys) {
2455 if (path.startsWith(key)) { 2463 if (path.startsWith(key)) {
2456 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2464 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2457 break; 2465 break;
2458 } 2466 }
2459 } 2467 }
2460 } 2468 }
2461 return path; 2469 return path;
2462 } 2470 }
2463 } 2471 }
OLDNEW
« no previous file with comments | « tools/dartium/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698