Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a16e620e
Unverified
Commit
a16e620e
authored
Mar 08, 2023
by
Jenn Magder
Committed by
GitHub
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Funnel devicelab tests through utils process methods (#122161)
Funnel devicelab tests through utils process methods
parent
244372b3
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
142 additions
and
132 deletions
+142
-132
flutter_engine_group_performance.dart
...devicelab/bin/tasks/flutter_engine_group_performance.dart
+2
-3
flutter_gallery_v2_chrome_run_test.dart
...vicelab/bin/tasks/flutter_gallery_v2_chrome_run_test.dart
+3
-3
flutter_test_performance.dart
dev/devicelab/bin/tasks/flutter_test_performance.dart
+7
-8
routing_test.dart
dev/devicelab/bin/tasks/routing_test.dart
+6
-6
service_extensions_test.dart
dev/devicelab/bin/tasks/service_extensions_test.dart
+3
-3
utils.dart
dev/devicelab/lib/framework/utils.dart
+12
-8
android_choreographer_do_frame_test.dart
...icelab/lib/tasks/android_choreographer_do_frame_test.dart
+3
-3
android_lifecycles_test.dart
dev/devicelab/lib/tasks/android_lifecycles_test.dart
+3
-3
dart_plugin_registry_tests.dart
dev/devicelab/lib/tasks/dart_plugin_registry_tests.dart
+3
-3
hot_mode_tests.dart
dev/devicelab/lib/tasks/hot_mode_tests.dart
+77
-68
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+12
-10
platform_channels_benchmarks.dart
dev/devicelab/lib/tasks/platform_channels_benchmarks.dart
+2
-5
web_dev_mode_tests.dart
dev/devicelab/lib/tasks/web_dev_mode_tests.dart
+9
-9
No files found.
dev/devicelab/bin/tasks/flutter_engine_group_performance.dart
View file @
a16e620e
...
@@ -58,10 +58,9 @@ Future<TaskResult> _doTest() async {
...
@@ -58,10 +58,9 @@ Future<TaskResult> _doTest() async {
final
String
gradlew
=
Platform
.
isWindows
?
'gradlew.bat'
:
'gradlew'
;
final
String
gradlew
=
Platform
.
isWindows
?
'gradlew.bat'
:
'gradlew'
;
final
String
gradlewExecutable
=
final
String
gradlewExecutable
=
Platform
.
isWindows
?
'.
\\
$gradlew
'
:
'./
$gradlew
'
;
Platform
.
isWindows
?
'.
\\
$gradlew
'
:
'./
$gradlew
'
;
final
String
flutterPath
=
path
.
join
(
flutterDirectory
,
'bin'
,
'flutter'
);
await
utils
.
flutter
(
'precache'
,
options:
<
String
>[
'--android'
],
await
utils
.
eval
(
flutterPath
,
<
String
>[
'precache'
,
'--android'
],
workingDirectory:
modulePath
);
workingDirectory:
modulePath
);
await
utils
.
eval
(
flutterPath
,
<
String
>[
'pub'
,
'get'
],
await
utils
.
flutter
(
'pub'
,
options:
<
String
>[
'get'
],
workingDirectory:
modulePath
);
workingDirectory:
modulePath
);
_copyGradleFromModule
(
modulePath
,
androidPath
);
_copyGradleFromModule
(
modulePath
,
androidPath
);
...
...
dev/devicelab/bin/tasks/flutter_gallery_v2_chrome_run_test.dart
View file @
a16e620e
...
@@ -53,9 +53,9 @@ class NewGalleryChromeRunTest {
...
@@ -53,9 +53,9 @@ class NewGalleryChromeRunTest {
]);
]);
final
List
<
String
>
options
=
<
String
>[
'-d'
,
'chrome'
,
'--verbose'
,
'--resident'
];
final
List
<
String
>
options
=
<
String
>[
'-d'
,
'chrome'
,
'--verbose'
,
'--resident'
];
final
Process
process
=
await
start
Process
(
final
Process
process
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
flutterCommandArgs
(
'run'
,
options
)
,
options:
options
,
);
);
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
...
...
dev/devicelab/bin/tasks/flutter_test_performance.dart
View file @
a16e620e
...
@@ -38,14 +38,13 @@ enum TestStep {
...
@@ -38,14 +38,13 @@ enum TestStep {
Future
<
int
>
runTest
({
bool
coverage
=
false
,
bool
noPub
=
false
})
async
{
Future
<
int
>
runTest
({
bool
coverage
=
false
,
bool
noPub
=
false
})
async
{
final
Stopwatch
clock
=
Stopwatch
()..
start
();
final
Stopwatch
clock
=
Stopwatch
()..
start
();
final
List
<
String
>
arguments
=
flutterCommandArgs
(
'test'
,
<
String
>[
final
Process
analysis
=
await
startFlutter
(
'test'
,
options:
<
String
>[
if
(
coverage
)
'--coverage'
,
if
(
coverage
)
'--coverage'
,
if
(
noPub
)
'--no-pub'
,
if
(
noPub
)
'--no-pub'
,
path
.
join
(
'flutter_test'
,
'trivial_widget_test.dart'
),
path
.
join
(
'flutter_test'
,
'trivial_widget_test.dart'
),
]);
],
final
Process
analysis
=
await
startProcess
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
arguments
,
workingDirectory:
path
.
join
(
flutterDirectory
.
path
,
'dev'
,
'automated_tests'
),
workingDirectory:
path
.
join
(
flutterDirectory
.
path
,
'dev'
,
'automated_tests'
),
);
);
int
badLines
=
0
;
int
badLines
=
0
;
...
...
dev/devicelab/bin/tasks/routing_test.dart
View file @
a16e620e
...
@@ -38,10 +38,10 @@ void main() {
...
@@ -38,10 +38,10 @@ void main() {
final
Completer
<
void
>
ready
=
Completer
<
void
>();
final
Completer
<
void
>
ready
=
Completer
<
void
>();
late
bool
ok
;
late
bool
ok
;
print
(
'run: starting...'
);
print
(
'run: starting...'
);
final
Process
run
=
await
start
Process
(
final
Process
run
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
// --fast-start does not support routes.
// --fast-start does not support routes.
<
String
>[
'run'
,
'--verbose'
,
'--disable-service-auth-codes'
,
'--no-fast-start'
,
'--no-publish-port'
,
'-d'
,
device
.
deviceId
,
'--route'
,
'/smuggle-it'
,
'lib/route.dart'
],
options:
<
String
>[
'--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
)
...
@@ -70,9 +70,9 @@ void main() {
...
@@ -70,9 +70,9 @@ void main() {
throw
'Failed to run test app.'
;
throw
'Failed to run test app.'
;
}
}
print
(
'drive: starting...'
);
print
(
'drive: starting...'
);
final
Process
drive
=
await
start
Process
(
final
Process
drive
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'drive'
,
<
String
>[
'drive'
,
'--use-existing-app'
,
'http://127.0.0.1:
$vmServicePort
/'
,
'--no-keep-app-running'
,
'lib/route.dart'
],
options:
<
String
>[
'--use-existing-app'
,
'http://127.0.0.1:
$vmServicePort
/'
,
'--no-keep-app-running'
,
'lib/route.dart'
],
);
);
drive
.
stdout
drive
.
stdout
.
transform
<
String
>(
utf8
.
decoder
)
.
transform
<
String
>(
utf8
.
decoder
)
...
...
dev/devicelab/bin/tasks/service_extensions_test.dart
View file @
a16e620e
...
@@ -25,9 +25,9 @@ void main() {
...
@@ -25,9 +25,9 @@ void main() {
final
Completer
<
void
>
ready
=
Completer
<
void
>();
final
Completer
<
void
>
ready
=
Completer
<
void
>();
late
bool
ok
;
late
bool
ok
;
print
(
'run: starting...'
);
print
(
'run: starting...'
);
final
Process
run
=
await
start
Process
(
final
Process
run
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
<
String
>[
'run'
,
'--verbose'
,
'--no-fast-start'
,
'--no-publish-port'
,
'--disable-service-auth-codes'
,
'-d'
,
device
.
deviceId
,
'lib/main.dart'
],
options:
<
String
>[
'--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
)
...
...
dev/devicelab/lib/framework/utils.dart
View file @
a16e620e
...
@@ -433,7 +433,7 @@ Future<String> eval(
...
@@ -433,7 +433,7 @@ Future<String> eval(
return
output
.
toString
().
trimRight
();
return
output
.
toString
().
trimRight
();
}
}
List
<
String
>
flutterCommandArgs
(
String
command
,
List
<
String
>
options
)
{
List
<
String
>
_
flutterCommandArgs
(
String
command
,
List
<
String
>
options
)
{
// Commands support the --device-timeout flag.
// Commands support the --device-timeout flag.
final
Set
<
String
>
supportedDeviceTimeoutCommands
=
<
String
>{
final
Set
<
String
>
supportedDeviceTimeoutCommands
=
<
String
>{
'attach'
,
'attach'
,
...
@@ -470,10 +470,11 @@ Future<int> flutter(String command, {
...
@@ -470,10 +470,11 @@ Future<int> flutter(String command, {
List
<
String
>
options
=
const
<
String
>[],
List
<
String
>
options
=
const
<
String
>[],
bool
canFail
=
false
,
// as in, whether failures are ok. False means that they are fatal.
bool
canFail
=
false
,
// as in, whether failures are ok. False means that they are fatal.
Map
<
String
,
String
>?
environment
,
Map
<
String
,
String
>?
environment
,
String
?
workingDirectory
,
})
{
})
{
final
List
<
String
>
args
=
flutterCommandArgs
(
command
,
options
);
final
List
<
String
>
args
=
_
flutterCommandArgs
(
command
,
options
);
return
exec
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
args
,
return
exec
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
args
,
canFail:
canFail
,
environment:
environment
);
canFail:
canFail
,
environment:
environment
,
workingDirectory:
workingDirectory
);
}
}
/// Starts a Flutter subprocess.
/// Starts a Flutter subprocess.
...
@@ -502,13 +503,15 @@ Future<Process> startFlutter(String command, {
...
@@ -502,13 +503,15 @@ Future<Process> startFlutter(String command, {
List
<
String
>
options
=
const
<
String
>[],
List
<
String
>
options
=
const
<
String
>[],
Map
<
String
,
String
>
environment
=
const
<
String
,
String
>{},
Map
<
String
,
String
>
environment
=
const
<
String
,
String
>{},
bool
isBot
=
true
,
// set to false to pretend not to be on a bot (e.g. to test user-facing outputs)
bool
isBot
=
true
,
// set to false to pretend not to be on a bot (e.g. to test user-facing outputs)
})
{
String
?
workingDirectory
,
final
List
<
String
>
args
=
flutterCommandArgs
(
command
,
options
);
})
async
{
final
List
<
String
>
args
=
_flutterCommandArgs
(
command
,
options
);
return
startProcess
(
return
startProcess
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
args
,
args
,
environment:
environment
,
environment:
environment
,
isBot:
isBot
,
isBot:
isBot
,
workingDirectory:
workingDirectory
,
);
);
}
}
...
@@ -518,16 +521,17 @@ Future<String> evalFlutter(String command, {
...
@@ -518,16 +521,17 @@ Future<String> evalFlutter(String command, {
bool
canFail
=
false
,
// as in, whether failures are ok. False means that they are fatal.
bool
canFail
=
false
,
// as in, whether failures are ok. False means that they are fatal.
Map
<
String
,
String
>?
environment
,
Map
<
String
,
String
>?
environment
,
StringBuffer
?
stderr
,
// if not null, the stderr will be written here.
StringBuffer
?
stderr
,
// if not null, the stderr will be written here.
String
?
workingDirectory
,
})
{
})
{
final
List
<
String
>
args
=
flutterCommandArgs
(
command
,
options
);
final
List
<
String
>
args
=
_
flutterCommandArgs
(
command
,
options
);
return
eval
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
args
,
return
eval
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
args
,
canFail:
canFail
,
environment:
environment
,
stderr:
stderr
);
canFail:
canFail
,
environment:
environment
,
stderr:
stderr
,
workingDirectory:
workingDirectory
);
}
}
Future
<
ProcessResult
>
executeFlutter
(
String
command
,
{
Future
<
ProcessResult
>
executeFlutter
(
String
command
,
{
List
<
String
>
options
=
const
<
String
>[],
List
<
String
>
options
=
const
<
String
>[],
})
async
{
})
async
{
final
List
<
String
>
args
=
flutterCommandArgs
(
command
,
options
);
final
List
<
String
>
args
=
_
flutterCommandArgs
(
command
,
options
);
return
_processManager
.
run
(
return
_processManager
.
run
(
<
String
>[
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
...
args
],
<
String
>[
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
...
args
],
workingDirectory:
cwd
,
workingDirectory:
cwd
,
...
...
dev/devicelab/lib/tasks/android_choreographer_do_frame_test.dart
View file @
a16e620e
...
@@ -88,9 +88,9 @@ Future<void> main() async {
...
@@ -88,9 +88,9 @@ Future<void> main() async {
section('
Flutter
run
(
mode:
$mode
)
');
section('
Flutter
run
(
mode:
$mode
)
');
late Process run;
late Process run;
await inDirectory(path.join(tempDir.path, '
app
'), () async {
await inDirectory(path.join(tempDir.path, '
app
'), () async {
run = await start
Process
(
run = await start
Flutter
(
path.join(flutterDirectory.path, '
bin
', '
flutter
')
,
'
run
'
,
flutterCommandArgs('
run
', <String>['
--
$mode
', '
--
verbose
'])
,
options: <String>['
--
$mode
', '
--
verbose
']
,
);
);
});
});
...
...
dev/devicelab/lib/tasks/android_lifecycles_test.dart
View file @
a16e620e
...
@@ -77,9 +77,9 @@ void main() {
...
@@ -77,9 +77,9 @@ void main() {
late
Process
run
;
late
Process
run
;
await
inDirectory
(
path
.
join
(
tempDir
.
path
,
'app'
),
()
async
{
await
inDirectory
(
path
.
join
(
tempDir
.
path
,
'app'
),
()
async
{
run
=
await
start
Process
(
run
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
flutterCommandArgs
(
'run'
,
<
String
>[
'--
$mode
'
])
,
options:
<
String
>[
'--
$mode
'
]
,
);
);
});
});
...
...
dev/devicelab/lib/tasks/dart_plugin_registry_tests.dart
View file @
a16e620e
...
@@ -143,9 +143,9 @@ class ApluginPlatformInterfaceMacOS {
...
@@ -143,9 +143,9 @@ class ApluginPlatformInterfaceMacOS {
late
Process
run
;
late
Process
run
;
await
inDirectory
(
path
.
join
(
tempDir
.
path
,
'app'
),
()
async
{
await
inDirectory
(
path
.
join
(
tempDir
.
path
,
'app'
),
()
async
{
run
=
await
start
Process
(
run
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
flutterCommandArgs
(
'run'
,
<
String
>[
'-d'
,
'macos'
,
'-v'
])
,
options:
<
String
>[
'-d'
,
'macos'
,
'-v'
]
,
);
);
});
});
...
...
dev/devicelab/lib/tasks/hot_mode_tests.dart
View file @
a16e620e
...
@@ -22,7 +22,6 @@ const String kReplacementLine = 'fontSize: (orientation == Orientation.portrait)
...
@@ -22,7 +22,6 @@ const String kReplacementLine = 'fontSize: (orientation == Orientation.portrait)
TaskFunction
createHotModeTest
(
{
TaskFunction
createHotModeTest
(
{
String
?
deviceIdOverride
,
String
?
deviceIdOverride
,
Map
<
String
,
String
>?
environment
,
bool
checkAppRunningOnLocalDevice
=
false
,
bool
checkAppRunningOnLocalDevice
=
false
,
})
{
})
{
// This file is modified during the test and needs to be restored at the end.
// This file is modified during the test and needs to be restored at the end.
...
@@ -63,27 +62,35 @@ TaskFunction createHotModeTest({
...
@@ -63,27 +62,35 @@ TaskFunction createHotModeTest({
try
{
try
{
await
inDirectory
<
void
>(
_editedFlutterGalleryDir
,
()
async
{
await
inDirectory
<
void
>(
_editedFlutterGalleryDir
,
()
async
{
smallReloadData
=
await
captureReloadData
(
options
,
environment
,
benchmarkFile
,
(
String
line
,
Process
process
)
{
smallReloadData
=
await
captureReloadData
(
options:
options
,
benchmarkFile:
benchmarkFile
,
onLine:
(
String
line
,
Process
process
)
{
if
(!
line
.
contains
(
'Reloaded '
))
{
if
(!
line
.
contains
(
'Reloaded '
))
{
return
;
return
;
}
}
if
(
hotReloadCount
==
0
)
{
if
(
hotReloadCount
==
0
)
{
// Update a file for 2 library invalidation.
// Update a file for 2 library invalidation.
final
File
appDartSource
=
file
(
path
.
join
(
final
File
appDartSource
=
file
(
path
.
join
(
_editedFlutterGalleryDir
.
path
,
'lib/gallery/app.dart'
,
_editedFlutterGalleryDir
.
path
,
'lib/gallery/app.dart'
,
));
));
appDartSource
.
writeAsStringSync
(
appDartSource
.
writeAsStringSync
(
appDartSource
.
readAsStringSync
().
replaceFirst
(
appDartSource
.
readAsStringSync
().
replaceFirst
(
"'Flutter Gallery'"
,
"'
Flutter Gallery'"
,
"'
Updated Flutter Gallery'"
,
"'Updated Flutter Gallery'"
,
));
));
process
.
stdin
.
writeln
(
'r'
);
process
.
stdin
.
writeln
(
'r'
);
hotReloadCount
+=
1
;
hotReloadCount
+=
1
;
}
else
{
}
else
{
process
.
stdin
.
writeln
(
'q'
);
process
.
stdin
.
writeln
(
'q'
);
}
}
});
},
);
mediumReloadData
=
await
captureReloadData
(
options
,
environment
,
benchmarkFile
,
(
String
line
,
Process
process
)
{
mediumReloadData
=
await
captureReloadData
(
options:
options
,
benchmarkFile:
benchmarkFile
,
onLine:
(
String
line
,
Process
process
)
{
if
(!
line
.
contains
(
'Reloaded '
))
{
if
(!
line
.
contains
(
'Reloaded '
))
{
return
;
return
;
}
}
...
@@ -100,9 +107,13 @@ TaskFunction createHotModeTest({
...
@@ -100,9 +107,13 @@ TaskFunction createHotModeTest({
}
else
{
}
else
{
process
.
stdin
.
writeln
(
'q'
);
process
.
stdin
.
writeln
(
'q'
);
}
}
});
},
);
largeReloadData
=
await
captureReloadData
(
options
,
environment
,
benchmarkFile
,
(
String
line
,
Process
process
)
async
{
largeReloadData
=
await
captureReloadData
(
options:
options
,
benchmarkFile:
benchmarkFile
,
onLine:
(
String
line
,
Process
process
)
async
{
if
(!
line
.
contains
(
'Reloaded '
))
{
if
(!
line
.
contains
(
'Reloaded '
))
{
return
;
return
;
}
}
...
@@ -119,15 +130,15 @@ TaskFunction createHotModeTest({
...
@@ -119,15 +130,15 @@ TaskFunction createHotModeTest({
}
}
process
.
stdin
.
writeln
(
'q'
);
process
.
stdin
.
writeln
(
'q'
);
}
}
});
},
);
// Start `flutter run` again to make sure it loads from the previous
// Start `flutter run` again to make sure it loads from the previous
// state. Frontend loads up from previously generated kernel files.
// state. Frontend loads up from previously generated kernel files.
{
{
final
Process
process
=
await
startProcess
(
final
Process
process
=
await
startFlutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
'run'
,
flutterCommandArgs
(
'run'
,
options
),
options:
options
,
environment:
environment
,
);
);
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stderrDone
=
Completer
<
void
>();
final
Completer
<
void
>
stderrDone
=
Completer
<
void
>();
...
@@ -233,16 +244,14 @@ TaskFunction createHotModeTest({
...
@@ -233,16 +244,14 @@ TaskFunction createHotModeTest({
};
};
}
}
Future
<
Map
<
String
,
dynamic
>>
captureReloadData
(
Future
<
Map
<
String
,
dynamic
>>
captureReloadData
({
List
<
String
>
options
,
required
List
<
String
>
options
,
Map
<
String
,
String
>?
environment
,
required
File
benchmarkFile
,
File
benchmarkFile
,
required
void
Function
(
String
,
Process
)
onLine
,
void
Function
(
String
,
Process
)
onLine
,
})
async
{
)
async
{
final
Process
process
=
await
startFlutter
(
final
Process
process
=
await
startProcess
(
'run'
,
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
options:
options
,
flutterCommandArgs
(
'run'
,
options
),
environment:
environment
,
);
);
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
...
...
dev/devicelab/lib/tasks/perf_tests.dart
View file @
a16e620e
...
@@ -867,8 +867,9 @@ class DevtoolsStartupTest {
...
@@ -867,8 +867,9 @@ class DevtoolsStartupTest {
break
;
break
;
}
}
final
Process
process
=
await
start
Process
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
<
String
>[
final
Process
process
=
await
start
Flutter
(
'run'
,
'run'
,
options:
<
String
>[
'--no-android-gradle-daemon'
,
'--no-android-gradle-daemon'
,
'--no-publish-port'
,
'--no-publish-port'
,
'--verbose'
,
'--verbose'
,
...
@@ -877,7 +878,8 @@ class DevtoolsStartupTest {
...
@@ -877,7 +878,8 @@ class DevtoolsStartupTest {
device
.
deviceId
,
device
.
deviceId
,
if
(
applicationBinaryPath
!=
null
)
if
(
applicationBinaryPath
!=
null
)
'--use-application-binary=
$applicationBinaryPath
'
,
'--use-application-binary=
$applicationBinaryPath
'
,
]);
],
);
final
Completer
<
void
>
completer
=
Completer
<
void
>();
final
Completer
<
void
>
completer
=
Completer
<
void
>();
bool
sawLine
=
false
;
bool
sawLine
=
false
;
process
.
stdout
process
.
stdout
...
...
dev/devicelab/lib/tasks/platform_channels_benchmarks.dart
View file @
a16e620e
...
@@ -21,18 +21,15 @@ TaskFunction runTask(adb.DeviceOperatingSystem operatingSystem) {
...
@@ -21,18 +21,15 @@ TaskFunction runTask(adb.DeviceOperatingSystem operatingSystem) {
final
Directory
appDir
=
utils
.
dir
(
path
.
join
(
utils
.
flutterDirectory
.
path
,
final
Directory
appDir
=
utils
.
dir
(
path
.
join
(
utils
.
flutterDirectory
.
path
,
'dev/benchmarks/platform_channels_benchmarks'
));
'dev/benchmarks/platform_channels_benchmarks'
));
final
Process
flutterProcess
=
await
utils
.
inDirectory
(
appDir
,
()
async
{
final
Process
flutterProcess
=
await
utils
.
inDirectory
(
appDir
,
()
async
{
final
String
flutterExe
=
path
.
join
(
utils
.
flutterDirectory
.
path
,
'bin'
,
'flutter'
);
final
List
<
String
>
createArgs
=
<
String
>[
final
List
<
String
>
createArgs
=
<
String
>[
'create'
,
'--platforms'
,
'--platforms'
,
'ios,android'
,
'ios,android'
,
'--no-overwrite'
,
'--no-overwrite'
,
'-v'
,
'-v'
,
'.'
,
'.'
,
];
];
print
(
'
\n
Executing:
$flutterEx
e
$createArgs
$appDir
'
);
print
(
'
\n
Executing:
flutter creat
e
$createArgs
$appDir
'
);
await
utils
.
eval
(
flutterExe
,
createArgs
);
await
utils
.
flutter
(
'create'
,
options:
createArgs
);
final
List
<
String
>
options
=
<
String
>[
final
List
<
String
>
options
=
<
String
>[
'-v'
,
'-v'
,
...
...
dev/devicelab/lib/tasks/web_dev_mode_tests.dart
View file @
a16e620e
...
@@ -42,13 +42,13 @@ TaskFunction createWebDevModeTest(String webDevice, bool enableIncrementalCompil
...
@@ -42,13 +42,13 @@ TaskFunction createWebDevModeTest(String webDevice, bool enableIncrementalCompil
recursiveCopy
(
flutterGalleryDir
,
_editedFlutterGalleryDir
);
recursiveCopy
(
flutterGalleryDir
,
_editedFlutterGalleryDir
);
await
inDirectory
<
void
>(
_editedFlutterGalleryDir
,
()
async
{
await
inDirectory
<
void
>(
_editedFlutterGalleryDir
,
()
async
{
{
{
await
exec
(
await
flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'packages'
,
<
String
>[
'packages'
,
'get'
],
options:
<
String
>[
'get'
],
);
);
final
Process
process
=
await
start
Process
(
final
Process
process
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
flutterCommandArgs
(
'run'
,
options
)
,
options:
options
,
);
);
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
...
@@ -127,9 +127,9 @@ TaskFunction createWebDevModeTest(String webDevice, bool enableIncrementalCompil
...
@@ -127,9 +127,9 @@ TaskFunction createWebDevModeTest(String webDevice, bool enableIncrementalCompil
{
{
final
Stopwatch
sw
=
Stopwatch
()..
start
();
final
Stopwatch
sw
=
Stopwatch
()..
start
();
final
Process
process
=
await
start
Process
(
final
Process
process
=
await
start
Flutter
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
)
,
'run'
,
flutterCommandArgs
(
'run'
,
options
)
,
options:
options
,
);
);
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stdoutDone
=
Completer
<
void
>();
final
Completer
<
void
>
stderrDone
=
Completer
<
void
>();
final
Completer
<
void
>
stderrDone
=
Completer
<
void
>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment