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

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

Issue 9302034: Make test.dart use the path of the running script to find the Dart checkout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix copyright dates. Created 8 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
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/status_file_parser.dart
diff --git a/tools/testing/dart/status_file_parser.dart b/tools/testing/dart/status_file_parser.dart
index 54a028eef0b2e3589ecf26339d609dca51460634..3721df86442caca6cc585a072752cdc18044cd7a 100644
--- a/tools/testing/dart/status_file_parser.dart
+++ b/tools/testing/dart/status_file_parser.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -34,15 +34,6 @@ class Section {
condition == null || condition.evaluate(environment);
}
-
-// Helper method to be able to run the test from the runtime
-// directory, or the top directory.
-String getFilename(String path) =>
- new File(path).existsSync() ? path : '../$path';
-
-String getDirname(String path) =>
- new Directory(path).existsSync() ? path : '../$path';
-
void ReadTestExpectationsInto(TestExpectations expectations,
String statusFilePath,
environment,
@@ -64,7 +55,7 @@ void ReadTestExpectationsInto(TestExpectations expectations,
}
void ReadConfigurationInto(path, sections, onDone) {
- File file = new File(getFilename(path));
+ File file = new File(path);
if (!file.existsSync()) return; // TODO(whesse): Handle missing file.
InputStream file_stream = file.openInputStream();
StringInputStream lines = new StringInputStream(file_stream);
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698