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
3d124d25
Unverified
Commit
3d124d25
authored
Jun 22, 2021
by
Abhishek Ghaskata
Committed by
GitHub
Jun 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate host agent (#84755)
parent
a2fa6d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
host_agent.dart
dev/devicelab/lib/framework/host_agent.dart
+5
-7
No files found.
dev/devicelab/lib/framework/host_agent.dart
View file @
3d124d25
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file/file.dart'
;
import
'package:file/local.dart'
;
import
'package:meta/meta.dart'
;
...
...
@@ -14,7 +12,7 @@ HostAgent get hostAgent => HostAgent(platform: const LocalPlatform(), fileSystem
/// Host machine running the tests.
class
HostAgent
{
HostAgent
({
@required
Platform
platform
,
@
required
FileSystem
fileSystem
})
HostAgent
({
required
Platform
platform
,
required
FileSystem
fileSystem
})
:
_platform
=
platform
,
_fileSystem
=
fileSystem
;
...
...
@@ -22,19 +20,19 @@ class HostAgent {
final
FileSystem
_fileSystem
;
/// Creates a directory to dump file artifacts.
Directory
/*?*/
get
dumpDirectory
{
Directory
?
get
dumpDirectory
{
if
(
_dumpDirectory
==
null
)
{
// Set in LUCI recipe.
final
String
directoryPath
=
_platform
.
environment
[
'FLUTTER_LOGS_DIR'
];
final
String
?
directoryPath
=
_platform
.
environment
[
'FLUTTER_LOGS_DIR'
];
if
(
directoryPath
!=
null
)
{
_dumpDirectory
=
_fileSystem
.
directory
(
directoryPath
)..
createSync
(
recursive:
true
);
print
(
'Found FLUTTER_LOGS_DIR dump directory
${_dumpDirectory.path}
'
);
print
(
'Found FLUTTER_LOGS_DIR dump directory
${_dumpDirectory
?
.path}
'
);
}
}
return
_dumpDirectory
;
}
static
Directory
/*?*/
_dumpDirectory
;
static
Directory
?
_dumpDirectory
;
@visibleForTesting
void
resetDumpDirectory
()
{
...
...
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