From d82385e37246ee34a2ce662feb981411c3c58ae7 Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Thu, 18 Apr 2024 16:34:16 +0000 Subject: [PATCH] drop chmod operations, should not be necessary Bug: https://github.com/dart-lang/sdk/issues/55460 Change-Id: Ic811ff55e4af023ed00e9e2b32b907ef2253114b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363540 Commit-Queue: Sigmund Cherem Reviewed-by: Sigmund Cherem Auto-Submit: Jake Macdonald --- pkg/modular_test/lib/src/io_pipeline.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/modular_test/lib/src/io_pipeline.dart b/pkg/modular_test/lib/src/io_pipeline.dart index 88d0695abbb..d089e4aa009 100644 --- a/pkg/modular_test/lib/src/io_pipeline.dart +++ b/pkg/modular_test/lib/src/io_pipeline.dart @@ -141,11 +141,6 @@ class IOPipeline extends Pipeline { var newPath = stepFolder.uri.resolve(_toFileName(module, dataId)).toFilePath(); await originalFile.copy(newPath); - // If the input was executable, ensure it still is. - var originalMode = (await originalFile.stat()).modeString(); - if (originalMode.contains('x')) { - await Process.run('chmod', [originalMode, newPath]); - } } } if (step.needsSources) { @@ -172,11 +167,6 @@ class IOPipeline extends Pipeline { .resolve(_toFileName(module, dataId, configSpecific: true)) .toFilePath(); await outputFile.copy(newPath); - // If the output was executable, ensure it still is. - var originalMode = (await outputFile.stat()).modeString(); - if (originalMode.contains('x')) { - await Process.run('chmod', [originalMode, newPath]); - } } await stepFolder.delete(recursive: true); }