devicelab benchmarks run on Windows (#8814)
* devicelab benchmarks run on Windows * fix analyzer issue * fix test * fix pubspec
This commit is contained in:
committed by
GitHub
parent
4c91b6e725
commit
d87f19817f
@@ -5,18 +5,22 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:process/process.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
final ProcessManager processManager = new LocalProcessManager();
|
||||
|
||||
group('run.dart script', () {
|
||||
Future<int> runScript(List<String> testNames) async {
|
||||
final List<String> options = <String>['bin/run.dart'];
|
||||
for (String testName in testNames) {
|
||||
options..addAll(<String>['-t', testName]);
|
||||
}
|
||||
final ProcessResult scriptProcess = Process.runSync(
|
||||
'../../bin/cache/dart-sdk/bin/dart',
|
||||
options,
|
||||
final String dart = path.absolute(path.join('..', '..', 'bin', 'cache', 'dart-sdk', 'bin', 'dart'));
|
||||
final ProcessResult scriptProcess = processManager.runSync(
|
||||
<String>[dart]..addAll(options)
|
||||
);
|
||||
return scriptProcess.exitCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user