[flutter_tools] Make setting of CWD consistent for flutter test (#74622)

This commit is contained in:
Jia Hao
2021-01-26 14:34:03 +08:00
committed by GitHub
parent 2eeeba9c09
commit 22f1700427
10 changed files with 26 additions and 24 deletions

View File

@@ -10,8 +10,6 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:vitool/vitool.dart';
import 'package:path/path.dart' as path;
const String kPackagePath = '..';
void main() {
test('parsePixels', () {
@@ -694,5 +692,5 @@ class PathAnimationMatcher extends Matcher {
}
String testAsset(String name) {
return path.join(kPackagePath, 'test_assets', name);
return path.join('test_assets', name);
}