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
9037ccd3
Unverified
Commit
9037ccd3
authored
4 years ago
by
Jenn Magder
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add per-test timeout to Cirrus tool general tests (#58649)
parent
f7d2bcdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
test.dart
dev/bots/test.dart
+5
-0
No files found.
dev/bots/test.dart
View file @
9037ccd3
...
...
@@ -326,6 +326,8 @@ Future<void> _runToolTests() async {
testPaths:
<
String
>[
path
.
join
(
kTest
,
'
$subshard$kDotShard
'
,
suffix
)],
tableData:
bigqueryApi
?.
tabledata
,
enableFlutterToolAsserts:
true
,
// Detect unit test time regressions (poor time delay handling, etc).
perTestTimeout:
(
subshard
==
'general'
)
?
const
Duration
(
seconds:
2
)
:
null
,
);
},
);
...
...
@@ -933,6 +935,7 @@ Future<void> _pubRunTest(String workingDirectory, {
String
coverage
,
bq
.
TabledataResourceApi
tableData
,
bool
forceSingleCore
=
false
,
Duration
perTestTimeout
,
})
async
{
int
cpus
;
final
String
cpuVariable
=
Platform
.
environment
[
'CPU'
];
// CPU is set in cirrus.yml
...
...
@@ -964,6 +967,8 @@ Future<void> _pubRunTest(String workingDirectory, {
'--no-color'
,
if
(
coverage
!=
null
)
'--coverage=
$coverage
'
,
if
(
perTestTimeout
!=
null
)
'--timeout=
${perTestTimeout.inMilliseconds.toString()}
ms'
,
if
(
testPaths
!=
null
)
for
(
final
String
testPath
in
testPaths
)
testPath
,
...
...
This diff is collapsed.
Click to expand it.
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