Unverified Commit 91aad2bb authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Avoid iOS local networking dialog in integration tests (#75163)

parent 80372f1b
...@@ -18,7 +18,7 @@ Future<String> runFlutterAndQuit(List<String> args, Device device) async { ...@@ -18,7 +18,7 @@ Future<String> runFlutterAndQuit(List<String> args, Device device) async {
print('run: starting...'); print('run: starting...');
final Process run = await startProcess( final Process run = await startProcess(
path.join(flutterDirectory.path, 'bin', 'flutter'), path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['run', '--suppress-analytics', ...args], <String>['run', '--suppress-analytics', '--no-publish-port', ...args],
isBot: false, // we just want to test the output, not have any debugging info isBot: false, // we just want to test the output, not have any debugging info
); );
final List<String> stdout = <String>[]; final List<String> stdout = <String>[];
......
...@@ -39,7 +39,7 @@ Future<TaskResult> createFlutterRunTask() async { ...@@ -39,7 +39,7 @@ Future<TaskResult> createFlutterRunTask() async {
final Device device = await devices.workingDevice; final Device device = await devices.workingDevice;
await device.unlock(); await device.unlock();
final List<String> options = <String>[ final List<String> options = <String>[
'-t', runTestSource.absolute.path, '-d', device.deviceId, '-v', '-t', runTestSource.absolute.path, '-d', device.deviceId, '-v', '--no-publish-port',
]; ];
await inDirectory<void>(flutterGalleryDir, () async { await inDirectory<void>(flutterGalleryDir, () async {
final Process run = await startProcess( final Process run = await startProcess(
......
...@@ -36,7 +36,7 @@ void main() { ...@@ -36,7 +36,7 @@ void main() {
final Process run = await startProcess( final Process run = await startProcess(
path.join(flutterDirectory.path, 'bin', 'flutter'), path.join(flutterDirectory.path, 'bin', 'flutter'),
// --fast-start does not support routes. // --fast-start does not support routes.
<String>['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'], <String>['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '--no-publish-port', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'],
); );
run.stdout run.stdout
.transform<String>(utf8.decoder) .transform<String>(utf8.decoder)
......
...@@ -26,7 +26,7 @@ void main() { ...@@ -26,7 +26,7 @@ void main() {
print('run: starting...'); print('run: starting...');
final Process run = await startProcess( final Process run = await startProcess(
path.join(flutterDirectory.path, 'bin', 'flutter'), path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['run', '--verbose', '--no-fast-start', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'], <String>['run', '--verbose', '--no-fast-start', '--no-publish-port', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'],
); );
run.stdout run.stdout
.transform<String>(utf8.decoder) .transform<String>(utf8.decoder)
......
...@@ -33,7 +33,7 @@ TaskFunction createHotModeTest({String deviceIdOverride, Map<String, String> env ...@@ -33,7 +33,7 @@ TaskFunction createHotModeTest({String deviceIdOverride, Map<String, String> env
final File benchmarkFile = file(path.join(_editedFlutterGalleryDir.path, 'hot_benchmark.json')); final File benchmarkFile = file(path.join(_editedFlutterGalleryDir.path, 'hot_benchmark.json'));
rm(benchmarkFile); rm(benchmarkFile);
final List<String> options = <String>[ final List<String> options = <String>[
'--hot', '-d', deviceIdOverride, '--benchmark', '--resident', '--no-android-gradle-daemon', '--verbose', '--hot', '-d', deviceIdOverride, '--benchmark', '--resident', '--no-android-gradle-daemon', '--no-publish-port', '--verbose',
]; ];
int hotReloadCount = 0; int hotReloadCount = 0;
Map<String, dynamic> smallReloadData; Map<String, dynamic> smallReloadData;
......
...@@ -30,6 +30,7 @@ TaskFunction createMicrobenchmarkTask() { ...@@ -30,6 +30,7 @@ TaskFunction createMicrobenchmarkTask() {
'-v', '-v',
// --release doesn't work on iOS due to code signing issues // --release doesn't work on iOS due to code signing issues
'--profile', '--profile',
'--no-publish-port',
'-d', '-d',
device.deviceId, device.deviceId,
]; ];
......
...@@ -484,6 +484,7 @@ class StartupTest { ...@@ -484,6 +484,7 @@ class StartupTest {
for (int i = 0; i < iterations; i += 1) { for (int i = 0; i < iterations; i += 1) {
final int result = await flutter('run', options: <String>[ final int result = await flutter('run', options: <String>[
'--no-android-gradle-daemon', '--no-android-gradle-daemon',
'--no-publish-port',
'--verbose', '--verbose',
'--profile', '--profile',
'--trace-startup', '--trace-startup',
...@@ -783,6 +784,7 @@ class PerfTestWithSkSL extends PerfTest { ...@@ -783,6 +784,7 @@ class PerfTestWithSkSL extends PerfTest {
'--verbose', '--verbose',
'--verbose-system-logs', '--verbose-system-logs',
'--purge-persistent-cache', '--purge-persistent-cache',
'--no-publish-port',
'--profile', '--profile',
if (cacheSkSL) '--cache-sksl', if (cacheSkSL) '--cache-sksl',
'-d', _device.deviceId, '-d', _device.deviceId,
...@@ -1286,6 +1288,7 @@ class DevToolsMemoryTest { ...@@ -1286,6 +1288,7 @@ class DevToolsMemoryTest {
'run', 'run',
'--verbose', '--verbose',
'--profile', '--profile',
'--no-publish-port',
'-d', _device.deviceId, '-d', _device.deviceId,
driverTest, driverTest,
], ],
...@@ -1401,6 +1404,7 @@ class ReportedDurationTest { ...@@ -1401,6 +1404,7 @@ class ReportedDurationTest {
print('launching $project$test on device...'); print('launching $project$test on device...');
await flutter('run', options: <String>[ await flutter('run', options: <String>[
'--verbose', '--verbose',
'--no-publish-port',
'--no-fast-start', '--no-fast-start',
'--${_reportedDurationTestToString(flavor)}', '--${_reportedDurationTestToString(flavor)}',
'--no-resident', '--no-resident',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment