From 0e439eab5011ee68ffb62a28d66852547d8615a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Thu, 16 Nov 2023 13:12:46 +0100 Subject: [PATCH] Fix environments in `test_persistent_tasks` --- CHANGELOG.md | 8 ++++++++ Project.toml | 2 +- src/persistent_tasks.jl | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 920c0da5..6b7416db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] + +## [0.8.1] - 2023-11-16 + +### Changed + +- `test_persistent_tasks` now redirects stdout and stderr of the created subtask. Furthermore, the environment of the subtask gets cleared to allow default values for `JULIA_LOAD_PATH` to work. ([#240](https://github.com/JuliaTesting/Aqua.jl/pull/240)) + + ## [0.8.0] - 2023-11-15 ### Added diff --git a/Project.toml b/Project.toml index 644c05e8..7f4d3af0 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Aqua" uuid = "4c88cf16-eb10-579e-8560-4a9242c79595" authors = ["Takafumi Arakaki and contributors"] -version = "0.8.0" +version = "0.8.1" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" diff --git a/src/persistent_tasks.jl b/src/persistent_tasks.jl index 3de9ff07..62b67eca 100644 --- a/src/persistent_tasks.jl +++ b/src/persistent_tasks.jl @@ -152,7 +152,8 @@ end end # Precompile the wrapper package cmd = `$(Base.julia_cmd()) --project=$wrapperdir -e 'using Pkg; Pkg.precompile()'` - proc = run(cmd; wait = false) + cmd = setenv(cmd, String[]) + proc = run(cmd, stdin, stdout, stderr; wait = false) while !isfile(statusfile) && process_running(proc) sleep(0.5) end