1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 18:57:59 +03:00

ssh: log diagnostics to stderr in tests

This commit is contained in:
Wez Furlong 2021-12-15 20:13:18 -07:00
parent 5500bd64e4
commit 5c0a2dab26

View File

@ -295,10 +295,12 @@ impl Sshd {
// Generate $ROOT/sshd_config based on config
let sshd_config_file = tmp.child("sshd_config");
sshd_config_file.write_str(&config.to_string())?;
std::fs::write("/dev/stderr", &config.to_string())?;
let sshd_log_file = tmp.child("sshd.log");
let (child, port) = Self::try_spawn_next(sshd_config_file.path(), sshd_log_file.path())
let (child, port) = Self::try_spawn_next(sshd_config_file.path(), "/dev/stderr")
//sshd_log_file.path())
.expect("No open port available for sshd");
Ok(Self { child, port, tmp })