@@ -7,7 +7,6 @@ import 'dart:io';
7
7
8
8
import 'package:args/args.dart' ;
9
9
import 'package:flutter_devicelab/framework/ab.dart' ;
10
- import 'package:flutter_devicelab/framework/manifest.dart' ;
11
10
import 'package:flutter_devicelab/framework/runner.dart' ;
12
11
import 'package:flutter_devicelab/framework/task_result.dart' ;
13
12
import 'package:flutter_devicelab/framework/utils.dart' ;
@@ -63,16 +62,6 @@ Future<void> main(List<String> rawArgs) async {
63
62
/// Path to write test results to.
64
63
final String ? resultsPath = args['results-file' ] as String ? ;
65
64
66
- if (! args.wasParsed ('task' )) {
67
- if (args.wasParsed ('stage' ) || args.wasParsed ('all' )) {
68
- addTasks (
69
- tasks: loadTaskManifest ().tasks,
70
- args: args,
71
- taskNames: taskNames,
72
- );
73
- }
74
- }
75
-
76
65
if (args.wasParsed ('list' )) {
77
66
for (int i = 0 ; i < taskNames.length; i++ ) {
78
67
print ('${(i + 1 ).toString ().padLeft (3 )} - ${taskNames [i ]}' );
@@ -209,29 +198,6 @@ File _uniqueFile(String filenameTemplate) {
209
198
return file;
210
199
}
211
200
212
- void addTasks ({
213
- required List <ManifestTask > tasks,
214
- required ArgResults args,
215
- required List <String > taskNames,
216
- }) {
217
- if (args.wasParsed ('continue-from' )) {
218
- final int index = tasks.indexWhere ((ManifestTask task) => task.name == args['continue-from' ]);
219
- if (index == - 1 ) {
220
- throw Exception ('Invalid task name "${args ['continue-from' ]}"' );
221
- }
222
- tasks.removeRange (0 , index);
223
- }
224
- // Only start skipping if user specified a task to continue from
225
- final String stage = args['stage' ] as String ;
226
- for (final ManifestTask task in tasks) {
227
- final bool isQualifyingStage = stage == null || task.stage == stage;
228
- final bool isQualifyingHost = ! (args['match-host-platform' ] as bool ) || task.isSupportedByHost ();
229
- if (isQualifyingHost && isQualifyingStage) {
230
- taskNames.add (task.name);
231
- }
232
- }
233
- }
234
-
235
201
ArgParser createArgParser (List <String > taskNames) {
236
202
return ArgParser ()
237
203
..addMultiOption (
@@ -293,16 +259,6 @@ ArgParser createArgParser(List<String> taskNames) {
293
259
'The filename may contain a single # character to be replaced by a sequence\n '
294
260
'number if the name already exists.' ,
295
261
)
296
- ..addFlag (
297
- 'all' ,
298
- abbr: 'a' ,
299
- help: 'Runs all tasks defined in manifest.yaml in alphabetical order.' ,
300
- )
301
- ..addOption (
302
- 'continue-from' ,
303
- abbr: 'c' ,
304
- help: 'With --all or --stage, continue from the given test.' ,
305
- )
306
262
..addFlag (
307
263
'exit' ,
308
264
defaultsTo: true ,
@@ -352,12 +308,6 @@ ArgParser createArgParser(List<String> taskNames) {
352
308
'service-account-token-file' ,
353
309
help: '[Flutter infrastructure] Authentication for uploading results.' ,
354
310
)
355
- ..addOption (
356
- 'stage' ,
357
- abbr: 's' ,
358
- help: 'Name of the stage. Runs all tasks for that stage. The tasks and\n '
359
- 'their stages are read from manifest.yaml.' ,
360
- )
361
311
..addFlag (
362
312
'silent' ,
363
313
help: 'Reduce verbosity slightly.' ,
0 commit comments