Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testament: don't close Process before reading exit code (#1130)
## Summary On Windows Testament now correctly captures the exit code from commands (compile, test run, etc). ## Details On platforms like Windows closing a process before reading the exit code invalidates the exit code, returning 0, which would falsely signify a success. Instead, use `defer` to make sure that the object is kept alive until the end of scope. --------- Co-authored-by: Saem Ghani <[email protected]>
- Loading branch information