diff --git a/dev/devicelab/bin/tasks/build_mode_test.dart b/dev/devicelab/bin/tasks/build_mode_test.dart index 9709467100..67afa0ed1f 100644 --- a/dev/devicelab/bin/tasks/build_mode_test.dart +++ b/dev/devicelab/bin/tasks/build_mode_test.dart @@ -18,7 +18,7 @@ Future runFlutterAndQuit(List args, Device device) async { print('run: starting...'); final Process run = await startProcess( path.join(flutterDirectory.path, 'bin', 'flutter'), - ['run', '--suppress-analytics', ...args], + ['run', '--suppress-analytics', '--no-publish-port', ...args], isBot: false, // we just want to test the output, not have any debugging info ); final List stdout = []; diff --git a/dev/devicelab/bin/tasks/flutter_run_test.dart b/dev/devicelab/bin/tasks/flutter_run_test.dart index 4e9681142f..55b0fdf4eb 100644 --- a/dev/devicelab/bin/tasks/flutter_run_test.dart +++ b/dev/devicelab/bin/tasks/flutter_run_test.dart @@ -39,7 +39,7 @@ Future createFlutterRunTask() async { final Device device = await devices.workingDevice; await device.unlock(); final List options = [ - '-t', runTestSource.absolute.path, '-d', device.deviceId, '-v', + '-t', runTestSource.absolute.path, '-d', device.deviceId, '-v', '--no-publish-port', ]; await inDirectory(flutterGalleryDir, () async { final Process run = await startProcess( diff --git a/dev/devicelab/bin/tasks/routing_test.dart b/dev/devicelab/bin/tasks/routing_test.dart index d56d8ad7dd..ee3627fb6e 100644 --- a/dev/devicelab/bin/tasks/routing_test.dart +++ b/dev/devicelab/bin/tasks/routing_test.dart @@ -36,7 +36,7 @@ void main() { final Process run = await startProcess( path.join(flutterDirectory.path, 'bin', 'flutter'), // --fast-start does not support routes. - ['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'], + ['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '--no-publish-port', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'], ); run.stdout .transform(utf8.decoder) diff --git a/dev/devicelab/bin/tasks/service_extensions_test.dart b/dev/devicelab/bin/tasks/service_extensions_test.dart index 2e3a77489e..4cad2f5859 100644 --- a/dev/devicelab/bin/tasks/service_extensions_test.dart +++ b/dev/devicelab/bin/tasks/service_extensions_test.dart @@ -26,7 +26,7 @@ void main() { print('run: starting...'); final Process run = await startProcess( path.join(flutterDirectory.path, 'bin', 'flutter'), - ['run', '--verbose', '--no-fast-start', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'], + ['run', '--verbose', '--no-fast-start', '--no-publish-port', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'], ); run.stdout .transform(utf8.decoder) diff --git a/dev/devicelab/lib/tasks/hot_mode_tests.dart b/dev/devicelab/lib/tasks/hot_mode_tests.dart index 0e43775bbc..8e478de141 100644 --- a/dev/devicelab/lib/tasks/hot_mode_tests.dart +++ b/dev/devicelab/lib/tasks/hot_mode_tests.dart @@ -33,7 +33,7 @@ TaskFunction createHotModeTest({String deviceIdOverride, Map env final File benchmarkFile = file(path.join(_editedFlutterGalleryDir.path, 'hot_benchmark.json')); rm(benchmarkFile); final List options = [ - '--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 smallReloadData; diff --git a/dev/devicelab/lib/tasks/microbenchmarks.dart b/dev/devicelab/lib/tasks/microbenchmarks.dart index f6f1024abb..246455cab6 100644 --- a/dev/devicelab/lib/tasks/microbenchmarks.dart +++ b/dev/devicelab/lib/tasks/microbenchmarks.dart @@ -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, ]; diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 8e9cad6c22..6697c83a9b 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -484,6 +484,7 @@ class StartupTest { for (int i = 0; i < iterations; i += 1) { final int result = await flutter('run', options: [ '--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: [ '--verbose', + '--no-publish-port', '--no-fast-start', '--${_reportedDurationTestToString(flavor)}', '--no-resident',