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
b92f80e2
Unverified
Commit
b92f80e2
authored
Aug 19, 2020
by
xster
Committed by
GitHub
Aug 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Incorrect path.join usage might be causing Windows test failures (#64056)
parent
734a90eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
+24
-14
module_custom_host_app_name_test.dart
...devicelab/bin/tasks/module_custom_host_app_name_test.dart
+12
-7
module_test.dart
dev/devicelab/bin/tasks/module_test.dart
+12
-7
No files found.
dev/devicelab/bin/tasks/module_custom_host_app_name_test.dart
View file @
b92f80e2
...
...
@@ -42,7 +42,8 @@ Future<void> main() async {
final
File
readonlyTxtAssetFile
=
await
File
(
path
.
join
(
projectDir
.
path
,
'assets/read-only.txt'
'assets'
,
'read-only.txt'
))
.
create
(
recursive:
true
);
...
...
@@ -253,7 +254,7 @@ Future<void> main() async {
section
(
'Check file access modes for read-only asset from Flutter module'
);
final
String
readonlyDebugAssetFilePath
=
path
.
join
(
final
String
readonlyDebugAssetFilePath
=
path
.
join
All
(<
String
>[
hostApp
.
path
,
'SampleApp'
,
'build'
,
...
...
@@ -261,8 +262,10 @@ Future<void> main() async {
'merged_assets'
,
'debug'
,
'out'
,
'flutter_assets/assets/read-only.txt'
,
);
'flutter_assets'
,
'assets'
,
'read-only.txt'
,
]);
final
File
readonlyDebugAssetFile
=
File
(
readonlyDebugAssetFilePath
);
if
(!
exists
(
readonlyDebugAssetFile
))
{
return
TaskResult
.
failure
(
'Failed to copy read-only asset file'
);
...
...
@@ -323,7 +326,7 @@ Future<void> main() async {
section
(
'Check file access modes for read-only asset from Flutter module'
);
final
String
readonlyReleaseAssetFilePath
=
path
.
join
(
final
String
readonlyReleaseAssetFilePath
=
path
.
join
All
(<
String
>[
hostApp
.
path
,
'SampleApp'
,
'build'
,
...
...
@@ -331,8 +334,10 @@ Future<void> main() async {
'merged_assets'
,
'release'
,
'out'
,
'flutter_assets/assets/read-only.txt'
,
);
'flutter_assets'
,
'assets'
,
'read-only.txt'
,
]);
final
File
readonlyReleaseAssetFile
=
File
(
readonlyReleaseAssetFilePath
);
if
(!
exists
(
readonlyReleaseAssetFile
))
{
return
TaskResult
.
failure
(
'Failed to copy read-only asset file'
);
...
...
dev/devicelab/bin/tasks/module_test.dart
View file @
b92f80e2
...
...
@@ -42,7 +42,8 @@ Future<void> main() async {
final
File
readonlyTxtAssetFile
=
await
File
(
path
.
join
(
projectDir
.
path
,
'assets/read-only.txt'
'assets'
,
'read-only.txt'
))
.
create
(
recursive:
true
);
...
...
@@ -253,7 +254,7 @@ Future<void> main() async {
section
(
'Check file access modes for read-only asset from Flutter module'
);
final
String
readonlyDebugAssetFilePath
=
path
.
join
(
final
String
readonlyDebugAssetFilePath
=
path
.
join
All
(<
String
>[
hostApp
.
path
,
'app'
,
'build'
,
...
...
@@ -261,8 +262,10 @@ Future<void> main() async {
'merged_assets'
,
'debug'
,
'out'
,
'flutter_assets/assets/read-only.txt'
,
);
'flutter_assets'
,
'assets'
,
'read-only.txt'
,
]);
final
File
readonlyDebugAssetFile
=
File
(
readonlyDebugAssetFilePath
);
if
(!
exists
(
readonlyDebugAssetFile
))
{
return
TaskResult
.
failure
(
'Failed to copy read-only asset file'
);
...
...
@@ -323,7 +326,7 @@ Future<void> main() async {
section
(
'Check file access modes for read-only asset from Flutter module'
);
final
String
readonlyReleaseAssetFilePath
=
path
.
join
(
final
String
readonlyReleaseAssetFilePath
=
path
.
join
All
(<
String
>[
hostApp
.
path
,
'app'
,
'build'
,
...
...
@@ -331,8 +334,10 @@ Future<void> main() async {
'merged_assets'
,
'release'
,
'out'
,
'flutter_assets/assets/read-only.txt'
,
);
'flutter_assets'
,
'assets'
,
'read-only.txt'
,
]);
final
File
readonlyReleaseAssetFile
=
File
(
readonlyReleaseAssetFilePath
);
if
(!
exists
(
readonlyReleaseAssetFile
))
{
return
TaskResult
.
failure
(
'Failed to copy read-only asset file'
);
...
...
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