Skip to content

Commit

Permalink
test: Always stream bpfd logs
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Tucker <[email protected]>
  • Loading branch information
dave-tucker committed Nov 15, 2023
1 parent 110ed50 commit 2b3d423
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/integration-test/src/tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@ impl Drop for ChildGuard {
/// Spawn a bpfd process
pub fn start_bpfd() -> Result<ChildGuard> {
debug!("Starting bpfd");
let bpfd_process = Command::cargo_bin("bpfd")?.spawn().map(|c| ChildGuard {
name: "bpfd",
child: c,
})?;

let bpfd_process = Command::cargo_bin("bpfd")?
.env("RUST_LOG", "bpfd=debug")
.spawn()
.map(|c| ChildGuard {
name: "bpfd",
child: c,
})?;

// Wait for up to 5 seconds for bpfd to be ready
sleep(Duration::from_millis(100));
Expand Down

0 comments on commit 2b3d423

Please sign in to comment.