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
4300226a
Unverified
Commit
4300226a
authored
Dec 04, 2020
by
Martin Kustermann
Committed by
GitHub
Dec 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass --local-engine* flags from dev/bots/test.dart down to `pub test` via env variables (#71721)
parent
d375a839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
test.dart
dev/bots/test.dart
+10
-0
No files found.
dev/bots/test.dart
View file @
4300226a
...
...
@@ -56,6 +56,8 @@ final String flutterTester = path.join(flutterRoot, 'bin', 'cache', 'artifacts',
/// configuration) -- prefilled with the arguments passed to test.dart.
final
List
<
String
>
flutterTestArgs
=
<
String
>[];
final
Map
<
String
,
String
>
localEngineEnv
=
<
String
,
String
>{};
final
bool
useFlutterTestFormatter
=
Platform
.
environment
[
'FLUTTER_TEST_FORMATTER'
]
==
'true'
;
...
...
@@ -105,6 +107,13 @@ Future<void> main(List<String> args) async {
print
(
'
$clock
STARTING ANALYSIS'
);
try
{
flutterTestArgs
.
addAll
(
args
);
for
(
final
String
arg
in
args
)
{
if
(
arg
.
startsWith
(
'--local-engine='
))
localEngineEnv
[
'FLUTTER_LOCAL_ENGINE'
]
=
arg
.
substring
(
'--local-engine='
.
length
);
if
(
arg
.
startsWith
(
'--local-engine-src-path='
))
localEngineEnv
[
'FLUTTER_LOCAL_ENGINE_SRC_PATH'
]
=
arg
.
substring
(
'--local-engine-src-path='
.
length
);
}
if
(
Platform
.
environment
.
containsKey
(
CIRRUS_TASK_NAME
))
print
(
'Running task:
${Platform.environment[CIRRUS_TASK_NAME]}
'
);
print
(
'═'
*
80
);
...
...
@@ -1242,6 +1251,7 @@ Future<void> _pubRunTest(String workingDirectory, {
];
final
Map
<
String
,
String
>
pubEnvironment
=
<
String
,
String
>{
'FLUTTER_ROOT'
:
flutterRoot
,
...
localEngineEnv
};
if
(
Directory
(
pubCache
).
existsSync
())
{
pubEnvironment
[
'PUB_CACHE'
]
=
pubCache
;
...
...
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