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

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

Issue 17361003: Print out experimental test.py reproduction command (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: tools/testing/dart/utils.dart
diff --git a/tools/testing/dart/utils.dart b/tools/testing/dart/utils.dart
index 4c8170f9125ab308b7c7fff9ba5fab3b96a7381b..3ddf330b75bf8e91b047e74abf5d4fa9c9310037 100644
--- a/tools/testing/dart/utils.dart
+++ b/tools/testing/dart/utils.dart
@@ -75,3 +75,12 @@ String decodeUtf8(List<int> bytes) {
return utf.decodeUtf8(bytes);
}
+// This function is pretty stupid and only puts quotes around an argument if
+// it the argument contains a space.
+String escapeCommandLineArgument(String argument) {
+ if (argument.contains(' ')) {
+ return '"$argument"';
+ }
+ return argument;
+}
+
« tools/testing/dart/test_progress.dart ('K') | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698