Skip to content

Commit

Permalink
fix dart script namings #7
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle committed Aug 29, 2023
1 parent 660f606 commit b87c209
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tool/send_metric_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0

import 'dart:io';
import 'package:args/args.dart';

import 'package:args/args.dart';

final testTypes = [
'canary',
Expand All @@ -22,17 +22,17 @@ void main(List<String> args) {
final parser = ArgParser()
..addOption('metric-name')
..addOption('is-failed')
..addOption('testType')
..addOption('test-type')
..addOption('category')
..addOption('workflowName')
..addOption('workflow-name')
..addOption('framework')
..addOption('flutterDartChannel')
..addOption('dartVersion')
..addOption('flutterVersion')
..addOption('dartCompiler')
..addOption('flutter-dart-channel')
..addOption('dart-version')
..addOption('flutter-version')
..addOption('dart-vompiler')
..addOption('platform')
..addOption('platformVersion')
..addOption('failingStep');
..addOption('platform-version')
..addOption('failing-step');

final results = parser.parse(args);

Expand Down Expand Up @@ -61,7 +61,7 @@ void main(List<String> args) {
print('Must provide testType dimension');
exit(1);
} else if (!testTypes.contains(testType)) {
print('TestType is not valid: ${testType}');
print('TestType is not valid: $testType');
exit(1);
}

Expand All @@ -82,12 +82,12 @@ void main(List<String> args) {
}

if (framework.isNotEmpty && !frameworkTypes.contains(framework)) {
print('Framework is not valid: ${framework}');
print('Framework is not valid: $framework');
exit(1);
}

if (platform.isNotEmpty && !platformTypes.contains(platform)) {
print('Platform is not valid: ${platform}');
print('Platform is not valid: $platform');
exit(1);
}

Expand Down

0 comments on commit b87c209

Please sign in to comment.