Chromium Code Reviews| Index: tools/testing/dart/http_server.dart |
| diff --git a/tools/testing/dart/http_server.dart b/tools/testing/dart/http_server.dart |
| index dcc37a6dbb03dba3abc1257d60c58fa882b6e7f6..84a5b771913bb4f090f67243b8ed16cb8aca00e3 100644 |
| --- a/tools/testing/dart/http_server.dart |
| +++ b/tools/testing/dart/http_server.dart |
| @@ -27,6 +27,7 @@ main() { |
| defaultsTo: 'ia32'); |
|
ahe
2013/02/01 10:28:59
Unused option.
|
| parser.addFlag('help', abbr: 'h', negatable: false, |
| help: 'Print this usage information.'); |
| + parser.addOption('package-root', help: 'The package root to use.'); |
| var args = parser.parse(new Options().arguments); |
| if (args['help']) { |
| print(parser.getUsage()); |
| @@ -39,10 +40,7 @@ main() { |
| .join(new Path('../../test.dart')) |
| .canonicalize() |
| .toNativePath(); |
| - TestingServerRunner.setPackageRootDir({'mode': args['mode'], |
| - 'arch': args['arch'], 'system': Platform.operatingSystem, |
| - 'build_directory': ''}); |
| - |
| + TestingServerRunner._packageRootDir = new Path(args['package-root']); |
| TestingServerRunner.startHttpServer('127.0.0.1', |
| port: int.parse(args['port'])); |
| print('Server listening on port ' |
| @@ -125,7 +123,6 @@ class TestingServerRunner { |
| } |
| } |
| }); |
| - |
| }; |
| // Echos back the contents of the request as the response data. |