Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("test_suite"); | 5 #library("test_suite"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 #import("multitest.dart"); | 9 #import("multitest.dart"); |
| 10 | 10 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 355 if (!testPath.startsWith(dartDir) || | 355 if (!testPath.startsWith(dartDir) || |
| 356 dartDir.endsWith('/frog')) { | 356 dartDir.endsWith('/frog')) { |
| 357 dartDir = new File('..').fullPathSync(); | 357 dartDir = new File('..').fullPathSync(); |
| 358 if (!testPath.startsWith(dartDir)) { | 358 if (!testPath.startsWith(dartDir)) { |
| 359 print('Run test.dart from the dart directory or' + | 359 print('Run test.dart from the dart directory or' + |
| 360 ' an immediate subdirectory only.'); | 360 ' an immediate subdirectory only.'); |
| 361 Expect.fail('Could not find top level dart directory.'); | 361 Expect.fail('Could not find top level dart directory.'); |
| 362 } | 362 } |
| 363 } | 363 } |
| 364 | 364 |
| 365 for (var vmOptions in optionsFromFile['vmOptions']) { | 365 // TODO(whesse): Find out if this loop is turning the buildbot red. |
| 366 // for (var vmOptions in optionsFromFile['vmOptions']) { | |
| 367 var vmOptions = optionsFromFile['vmOptions'][0]; { | |
|
Emily Fortuna
2012/01/09 19:08:36
I think what may be happening is if you specify --
Emily Fortuna
2012/01/09 19:10:16
Fixing url from above: http://code.google.com/p/da
| |
| 368 | |
| 366 // Create a unique temporary directory for each set of vmOptions. | 369 // Create a unique temporary directory for each set of vmOptions. |
| 367 // TODO(whesse): Replace separate replaces with a RegExp when | 370 // TODO(whesse): Replace separate replaces with a RegExp when |
| 368 // replaceAll(RegExp, String) is implemented. | 371 // replaceAll(RegExp, String) is implemented. |
| 369 String optionsName = ''; | 372 String optionsName = ''; |
| 370 if (optionsFromFile['vmOptions'].length > 1) { | 373 if (optionsFromFile['vmOptions'].length > 1) { |
| 371 optionsName = Strings.join(vmOptions, '-').replaceAll('-','') | 374 optionsName = Strings.join(vmOptions, '-').replaceAll('-','') |
| 372 .replaceAll('=','') | 375 .replaceAll('=','') |
| 373 .replaceAll('/',''); | 376 .replaceAll('/',''); |
| 374 } | 377 } |
| 375 Directory tempDir = | 378 Directory tempDir = |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1026 * $noCrash tests are expected to be flaky but not crash | 1029 * $noCrash tests are expected to be flaky but not crash |
| 1027 * $pass tests are expected to pass | 1030 * $pass tests are expected to pass |
| 1028 * $failOk tests are expected to fail that we won't fix | 1031 * $failOk tests are expected to fail that we won't fix |
| 1029 * $fail tests are expected to fail that we should fix | 1032 * $fail tests are expected to fail that we should fix |
| 1030 * $crash tests are expected to crash that we should fix | 1033 * $crash tests are expected to crash that we should fix |
| 1031 * $timeout tests are allowed to timeout\ | 1034 * $timeout tests are allowed to timeout\ |
| 1032 """; | 1035 """; |
| 1033 print(report); | 1036 print(report); |
| 1034 } | 1037 } |
| 1035 } | 1038 } |
| OLD | NEW |