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
08c2e077
Commit
08c2e077
authored
Dec 08, 2017
by
Ben Konyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed special cases for '.exe'.
parent
bf33eb78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+0
-6
runner.dart
packages/flutter_tools/lib/src/test/runner.dart
+2
-1
No files found.
packages/flutter_tools/lib/src/artifacts.dart
View file @
08c2e077
...
...
@@ -159,10 +159,6 @@ class CachedArtifacts extends Artifacts {
// android_arm in profile mode because it is available on all supported host platforms.
return
_getAndroidArtifactPath
(
artifact
,
TargetPlatform
.
android_arm
,
BuildMode
.
profile
);
case
Artifact
.
flutterTester
:
final
String
engineArtifactsPath
=
cache
.
getArtifactDirectory
(
'engine'
).
path
;
final
String
platformDirName
=
getNameForTargetPlatform
(
platform
);
String
path
=
fs
.
path
.
join
(
engineArtifactsPath
,
platformDirName
,
_artifactToFileName
(
artifact
));
return
(
platform
==
TargetPlatform
.
windows_x64
)
?
(
path
+
'.exe'
)
:
path
;
case
Artifact
.
vmSnapshotData
:
case
Artifact
.
isolateSnapshotData
:
case
Artifact
.
frontendServerSnapshotForEngineDartSdk
:
...
...
@@ -283,8 +279,6 @@ class LocalEngineArtifacts extends Artifacts {
return
fs
.
path
.
join
(
engineOutPath
,
_artifactToFileName
(
Artifact
.
flutterTester
));
}
else
if
(
getCurrentHostPlatform
()
==
HostPlatform
.
darwin_x64
)
{
return
fs
.
path
.
join
(
engineOutPath
,
'flutter_tester'
);
}
else
if
(
getCurrentHostPlatform
()
==
HostPlatform
.
windows_x64
)
{
return
fs
.
path
.
join
(
engineOutPath
,
'flutter_tester.exe'
);
}
throw
new
Exception
(
'Unsupported platform
$platform
.'
);
}
...
...
packages/flutter_tools/lib/src/test/runner.dart
View file @
08c2e077
...
...
@@ -11,6 +11,7 @@ import '../artifacts.dart';
import
'../base/common.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/process_manager.dart'
;
import
'../base/terminal.dart'
;
import
'../dart/package_map.dart'
;
import
'../globals.dart'
;
...
...
@@ -61,7 +62,7 @@ Future<int> runTests(
// Configure package:test to use the Flutter engine for child processes.
final
String
shellPath
=
artifacts
.
getArtifactPath
(
Artifact
.
flutterTester
);
if
(!
fs
.
isFileSync
(
shellPath
))
if
(!
processManager
.
canRun
(
shellPath
))
throwToolExit
(
'Cannot find Flutter shell at
$shellPath
'
);
final
InternetAddressType
serverType
=
...
...
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