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
54f674c2
Unverified
Commit
54f674c2
authored
Feb 02, 2022
by
Daco Harkes
Committed by
GitHub
Feb 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate bots/test.dart from `pub run` to `dart run` (#97575)
parent
2b14a3ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
test.dart
dev/bots/test.dart
+13
-14
No files found.
dev/bots/test.dart
View file @
54f674c2
...
...
@@ -34,7 +34,6 @@ final String bat = Platform.isWindows ? '.bat' : '';
final
String
flutterRoot
=
path
.
dirname
(
path
.
dirname
(
path
.
dirname
(
path
.
fromUri
(
Platform
.
script
))));
final
String
flutter
=
path
.
join
(
flutterRoot
,
'bin'
,
'flutter
$bat
'
);
final
String
dart
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
'dart
$exe
'
);
final
String
pub
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
'pub
$bat
'
);
final
String
pubCache
=
path
.
join
(
flutterRoot
,
'.pub-cache'
);
final
String
toolRoot
=
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
);
final
String
engineVersionFile
=
path
.
join
(
flutterRoot
,
'bin'
,
'internal'
,
'engine.version'
);
...
...
@@ -340,7 +339,7 @@ Future<void> _runSmokeTests() async {
}
Future
<
void
>
_runGeneralToolTests
()
async
{
await
_
pub
RunTest
(
await
_
dart
RunTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
),
testPaths:
<
String
>[
path
.
join
(
'test'
,
'general.shard'
)],
enableFlutterToolAsserts:
false
,
...
...
@@ -352,7 +351,7 @@ Future<void> _runGeneralToolTests() async {
}
Future
<
void
>
_runCommandsToolTests
()
async
{
await
_
pub
RunTest
(
await
_
dart
RunTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
),
forceSingleCore:
true
,
testPaths:
<
String
>[
path
.
join
(
'test'
,
'commands.shard'
)],
...
...
@@ -360,7 +359,7 @@ Future<void> _runCommandsToolTests() async {
}
Future
<
void
>
_runWebToolTests
()
async
{
await
_
pub
RunTest
(
await
_
dart
RunTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
),
forceSingleCore:
true
,
testPaths:
<
String
>[
path
.
join
(
'test'
,
'web.shard'
)],
...
...
@@ -375,7 +374,7 @@ Future<void> _runIntegrationToolTests() async {
.
map
<
String
>((
FileSystemEntity
entry
)
=>
path
.
relative
(
entry
.
path
,
from:
toolsPath
))
.
where
((
String
testPath
)
=>
path
.
basename
(
testPath
).
endsWith
(
'_test.dart'
)).
toList
();
await
_
pub
RunTest
(
await
_
dart
RunTest
(
toolsPath
,
forceSingleCore:
true
,
testPaths:
_selectIndexOfTotalSubshard
<
String
>(
allTests
),
...
...
@@ -851,9 +850,9 @@ Future<void> _runFrameworkTests() async {
Future
<
void
>
runPrivateTests
()
async
{
final
List
<
String
>
args
=
<
String
>[
'run'
,
'--sound-null-safety'
,
'test_private.dart'
,
'run'
,
'bin/test_private.dart'
,
];
final
Map
<
String
,
String
>
environment
=
<
String
,
String
>{
'FLUTTER_ROOT'
:
flutterRoot
,
...
...
@@ -862,7 +861,7 @@ Future<void> _runFrameworkTests() async {
};
adjustEnvironmentToEnableFlutterAsserts
(
environment
);
await
runCommand
(
pub
,
dart
,
args
,
workingDirectory:
path
.
join
(
flutterRoot
,
'packages'
,
'flutter'
,
'test_private'
),
environment:
environment
,
...
...
@@ -872,9 +871,9 @@ Future<void> _runFrameworkTests() async {
Future
<
void
>
runMisc
()
async
{
print
(
'
${green}
Running package tests
$reset
for directories other than packages/flutter'
);
await
runExampleTests
();
await
_
pub
RunTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'bots'
));
await
_
pub
RunTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'devicelab'
),
ensurePrecompiledTool:
false
);
// See https://github.com/flutter/flutter/issues/86209
await
_
pub
RunTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'conductor'
,
'core'
),
forceSingleCore:
true
);
await
_
dart
RunTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'bots'
));
await
_
dart
RunTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'devicelab'
),
ensurePrecompiledTool:
false
);
// See https://github.com/flutter/flutter/issues/86209
await
_
dart
RunTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'conductor'
,
'core'
),
forceSingleCore:
true
);
// TODO(gspencergoog): Remove the exception for fatalWarnings once https://github.com/flutter/flutter/pull/91127 has landed.
await
_runFlutterTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'integration_tests'
,
'android_semantics_testing'
),
fatalWarnings:
false
);
await
_runFlutterTest
(
path
.
join
(
flutterRoot
,
'dev'
,
'manual_tests'
));
...
...
@@ -1605,7 +1604,7 @@ Future<void> _runFlutterWebTest(String webRenderer, String workingDirectory, Lis
// properly when overriding the local engine (for example, because some platform
// dependent targets are only built on some engines).
// See https://github.com/flutter/flutter/issues/72368
Future
<
void
>
_
pub
RunTest
(
String
workingDirectory
,
{
Future
<
void
>
_
dart
RunTest
(
String
workingDirectory
,
{
List
<
String
>?
testPaths
,
bool
enableFlutterToolAsserts
=
true
,
bool
useBuildRunner
=
false
,
...
...
@@ -1674,7 +1673,7 @@ Future<void> _pubRunTest(String workingDirectory, {
Stream
<
String
>
testOutput
;
try
{
testOutput
=
runAndGetStdout
(
pub
,
dart
,
args
,
workingDirectory:
workingDirectory
,
environment:
environment
,
...
...
@@ -1685,7 +1684,7 @@ Future<void> _pubRunTest(String workingDirectory, {
await
_processTestOutput
(
formatter
,
testOutput
);
}
else
{
await
runCommand
(
pub
,
dart
,
args
,
workingDirectory:
workingDirectory
,
environment:
environment
,
...
...
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