Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion crates/socket-patch-cli/tests/scan/scan_tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,15 @@ async fn scan_on_a_terminal_shows_what_was_measured() {
let uri = mock.uri();
let cwd = tmp.path().to_path_buf();
let (code, output) = tokio::task::spawn_blocking(move || {
// `LANG` is the last of the three variables a locale is read
// from, and the child inherits the other two: a runner that
// exports `LC_ALL` (the macOS ones do) would outrank the
// locale under test.
let mut binary = common::hermetic::pty_binary_command();
binary.env_remove("LC_ALL");
binary.env_remove("LC_CTYPE");
let run = pty_io::run_command(
common::hermetic::pty_binary_command(),
binary,
&[&["scan", "--mode", "agent"][..], &api_args(&uri)].concat(),
&cwd,
&[("LANG", locale)],
Expand Down
Loading