Also output --network for testing http server commandline

If for instance running ddc kernel tests via

tools/test.py -mrelease -cdartdevk language_2 -v

one is told that a http server is started with a command line that will
create a http server listening to 0.0.0.0, while generally the one
actually launched by the testing scripts only listen to 127.0.0.1.

This CL adds the extra --network output to the command line given.

Bug:
Change-Id: Ifd9278360efb0b12249fe866c49ed923f7e73b0e
Reviewed-on: https://dart-review.googlesource.com/24102
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
This commit is contained in:
Jens Johansen 2017-11-29 07:30:40 +00:00 committed by commit-bot@chromium.org
parent 69d1301388
commit 6e9c74274c

View file

@ -155,6 +155,7 @@ class TestingServers {
}
}
String get network => _serverList[0].address.address;
int get port => _serverList[0].port;
int get crossOriginPort => _serverList[1].port;
DispatchingServer get server => _server;
@ -192,6 +193,8 @@ class TestingServers {
port,
'-c',
crossOriginPort,
'--network',
network,
'--build-directory=$buildDirectory',
'--runtime=${runtime.name}'
];