Fix test file to make Dart repo test runner happy.
R=pquitslund@google.com
Review URL: https://chromiumcodereview.appspot.com//958213002
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 85ee2d5..e535551 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 0.1.5+1
+
+* Fix test file to work in main Dart repo test runner.
+
# 0.1.5
* Change executable name from `dartformat` to `dartfmt`.
diff --git a/pubspec.yaml b/pubspec.yaml
index 2944e09..f8a58ee 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: dart_style
-version: 0.1.5
+version: 0.1.5+1
author: Dart Team <misc@dartlang.org>
description: Opinionated, automatic Dart source code formatter.
homepage: https://github.com/dart-lang/dart_style
diff --git a/test/utils.dart b/test/utils.dart
index 56b7d7d..30a273a 100644
--- a/test/utils.dart
+++ b/test/utils.dart
@@ -2,7 +2,7 @@
// 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.
-library dart_style.test.command_line;
+library dart_style.test.utils;
import 'dart:io';
@@ -22,7 +22,7 @@
var formatterPath = p.join(
p.dirname(p.fromUri(Platform.script)), "..", "bin", "format.dart");
- args.insert(0, formatterPath);
+ args.insertAll(0, ["--package-root=${Platform.packageRoot}", formatterPath]);
return new ScheduledProcess.start(Platform.executable, args);
}