Skip to content

Commit

Permalink
Preserve temp directory when running isolated test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Nov 6, 2023
1 parent c72ed16 commit de65264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/native_assets_builder/lib/src/utils/run_process.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Future<RunProcessResult> runProcess({
if (Platform.isWindows && !includeParentEnvironment) {
const winEnvKeys = [
'SYSTEMROOT',
'TEMP',
'TMP',
];
environment = {
for (final winEnvKey in winEnvKeys)
Expand Down
2 changes: 2 additions & 0 deletions pkgs/native_toolchain_c/lib/src/utils/run_process.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Future<RunProcessResult> runProcess({
if (Platform.isWindows && !includeParentEnvironment) {
const winEnvKeys = [
'SYSTEMROOT',
'TEMP',
'TMP',
];
environment = {
for (final winEnvKey in winEnvKeys)
Expand Down

0 comments on commit de65264

Please sign in to comment.