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

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

Issue 9595022: Removes a redundant mode_arch component from paths for generated tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 80fc822033df6f5b8a65c6ecb0093790011524d8..01ca1b3027a63344e09c206c0c8fe6127fdad998 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -485,10 +485,10 @@ class StandardTestSuite implements TestSuite {
// than 260 characters, and without this hack, we were running past the
// the limit.
String htmlFilename = getHtmlName(filename);
- while ('${tempDir.path}/../../$htmlFilename'.length >= 260) {
+ while ('${tempDir.path}/../$htmlFilename'.length >= 260) {
htmlFilename = htmlFilename.substring(htmlFilename.length~/2);
}
- htmlPath = '${tempDir.path}/../../$htmlFilename';
+ htmlPath = '${tempDir.path}/../$htmlFilename';
}
final String scriptPath = (component == 'dartium') ?
dartWrapperFilename : compiledDartWrapperFilename;
@@ -577,13 +577,11 @@ class StandardTestSuite implements TestSuite {
String executable = TestUtils.compilerPath(configuration);
List<String> args = TestUtils.standardOptions(configuration);
switch (component) {
+ // TODO(zundel): Remove chromium now that dartc doesn't generate code?
case 'chromium':
args.addAll(['--work', dir]);
args.addAll(vmOptions);
args.add('--ignore-unrecognized-flags');
- // TODO(zundel): remove assumption of generated code from dartc
- args.add('--out');
- args.add(outputFile);
args.add(inputFile);
// TODO(whesse): Add --fatal-type-errors if needed.
break;
@@ -637,16 +635,19 @@ class StandardTestSuite implements TestSuite {
// Create '[build dir]/generated_tests/$component/$testUniqueName',
// including any intermediate directories that don't exist.
- String debugMode =
- (configuration['mode'] == 'debug') ? 'Debug_' : 'Release_';
- var generatedTestPath = [debugMode + configuration["arch"],
- 'generated_tests',
+ var generatedTestPath = ['generated_tests',
configuration['component'],
testUniqueName];
String tempDirPath = TestUtils.buildDir(configuration);
if (requiresCleanTemporaryDirectory) {
tempDirPath = globalTemporaryDirectory();
+ String debugMode =
+ (configuration['mode'] == 'debug') ? 'Debug_' : 'Release_';
+ debugMode + configuration["arch"];
Bill Hesse 2012/03/05 16:58:00 I think you mean debugMode += configuration["arch"
+ generatedTestPath.insertRange(0, 1, debugMode);
+ print("generatedTestPath is: ${generatedTestPath}");
+
}
Directory tempDir = new Directory(tempDirPath);
if (!tempDir.existsSync()) {
« 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