mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 02:50:20 +00:00
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:
parent
69d1301388
commit
6e9c74274c
|
@ -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}'
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue