Skip to content

Commit

Permalink
Pipe stderr for node processes
Browse files Browse the repository at this point in the history
This has fallen away while removing bawawa.
  • Loading branch information
Mikhail Zabaluev committed Jul 1, 2020
1 parent 3b677ea commit 1b9356f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion testing/jormungandr-scenario-tests/src/legacy/node.rs
Expand Up @@ -36,7 +36,7 @@ use yaml_rust::{Yaml, YamlLoader};
use std::collections::HashMap;
use std::io::{BufRead, BufReader};
use std::path::{Path, PathBuf};
use std::process::{Child, Command};
use std::process::{Child, Command, Stdio};
use std::sync::{Arc, Mutex};
use std::time::Duration;

Expand Down Expand Up @@ -619,6 +619,8 @@ impl LegacyNode {
}
}

command.stderr(Stdio::piped());

let process = command.spawn().map_err(Error::CannotSpawnNode)?;

let node = LegacyNode {
Expand Down
4 changes: 3 additions & 1 deletion testing/jormungandr-scenario-tests/src/node.rs
Expand Up @@ -31,7 +31,7 @@ use rand_core::RngCore;
use std::collections::HashMap;
use std::io::{self, BufRead, BufReader};
use std::path::{Path, PathBuf};
use std::process::{Child, Command, ExitStatus};
use std::process::{Child, Command, ExitStatus, Stdio};
use std::sync::{Arc, Mutex};
use std::time::Duration;

Expand Down Expand Up @@ -605,6 +605,8 @@ impl Node {
}
}

command.stderr(Stdio::piped());

let process = command.spawn().map_err(Error::CannotSpawnNode)?;

let node = Node {
Expand Down

0 comments on commit 1b9356f

Please sign in to comment.