@@ -226,7 +226,6 @@ abstract class TestSuite {
226226
227227 TestUtils .mkdirRecursive (Path ('.' ), generatedTestPath);
228228 return File (generatedTestPath.toNativePath ())
229- .absolute
230229 .path
231230 .replaceAll ('\\ ' , '/' );
232231 }
@@ -344,7 +343,7 @@ class VMTestSuite extends TestSuite {
344343 configuration.architecture == Architecture .x64c
345344 ? '$buildDir /gen/kernel-service.dart.snapshot'
346345 : '$buildDir /gen/kernel_service.dill' ;
347- var dfePath = Path (filename).absolute. toNativePath ();
346+ var dfePath = Path (filename).toNativePath ();
348347 final experiments = [...configuration.experiments];
349348 var args = [
350349 ...initialTargetArguments,
@@ -955,8 +954,7 @@ class StandardTestSuite extends TestSuite {
955954 var nameFromModuleRoot = testFile.path.relativeTo (Repository .dir);
956955 var nameFromModuleRootNoExt =
957956 "${nameFromModuleRoot .directoryPath }/$nameNoExt " ;
958- var jsDir =
959- Path (compilationTempDir).relativeTo (Repository .dir).toString ();
957+ var jsDir = Path (compilationTempDir).toString ();
960958 var nativeNonNullAsserts =
961959 testFile.ddcOptions.contains ('--native-null-assertions' );
962960 var jsInteropNonNullAsserts =
@@ -1032,15 +1030,16 @@ class StandardTestSuite extends TestSuite {
10321030 args.add ('--format=json' );
10331031 }
10341032
1035- args.add (testFile.path.toNativePath ());
1033+ args.add (testFile.path.relativeTo ( Repository .dir). toNativePath ());
10361034
10371035 return args;
10381036 }
10391037
10401038 String ? packagesArgument (String ? packages) {
10411039 // If this test is inside a package, we will check if there is a
10421040 // pubspec.yaml file and if so, create a custom package root for it.
1043- packages ?? = Path (configuration.packages).toNativePath ();
1041+ packages ?? =
1042+ Path (configuration.packages).relativeTo (Repository .dir).toNativePath ();
10441043
10451044 if (packages == 'none' ) {
10461045 return null ;
0 commit comments