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

This commit is contained in:
Jenn Magder
2021-02-01 13:33:25 -08:00
committed by GitHub
parent 80372f1b71
commit 91aad2bb06
7 changed files with 10 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ TaskFunction createHotModeTest({String deviceIdOverride, Map<String, String> env
final File benchmarkFile = file(path.join(_editedFlutterGalleryDir.path, 'hot_benchmark.json'));
rm(benchmarkFile);
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;
Map<String, dynamic> smallReloadData;

View File

@@ -30,6 +30,7 @@ TaskFunction createMicrobenchmarkTask() {
'-v',
// --release doesn't work on iOS due to code signing issues
'--profile',
'--no-publish-port',
'-d',
device.deviceId,
];

View File

@@ -484,6 +484,7 @@ class StartupTest {
for (int i = 0; i < iterations; i += 1) {
final int result = await flutter('run', options: <String>[
'--no-android-gradle-daemon',
'--no-publish-port',
'--verbose',
'--profile',
'--trace-startup',
@@ -783,6 +784,7 @@ class PerfTestWithSkSL extends PerfTest {
'--verbose',
'--verbose-system-logs',
'--purge-persistent-cache',
'--no-publish-port',
'--profile',
if (cacheSkSL) '--cache-sksl',
'-d', _device.deviceId,
@@ -1286,6 +1288,7 @@ class DevToolsMemoryTest {
'run',
'--verbose',
'--profile',
'--no-publish-port',
'-d', _device.deviceId,
driverTest,
],
@@ -1401,6 +1404,7 @@ class ReportedDurationTest {
print('launching $project$test on device...');
await flutter('run', options: <String>[
'--verbose',
'--no-publish-port',
'--no-fast-start',
'--${_reportedDurationTestToString(flavor)}',
'--no-resident',