From 2b3d42318ef0cfd065b75cf3f6a4e60eada66397 Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Wed, 15 Nov 2023 13:57:24 +0000 Subject: [PATCH] test: Always stream bpfd logs Signed-off-by: Dave Tucker --- tests/integration-test/src/tests/utils.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/integration-test/src/tests/utils.rs b/tests/integration-test/src/tests/utils.rs index ceef90463..9db2867eb 100644 --- a/tests/integration-test/src/tests/utils.rs +++ b/tests/integration-test/src/tests/utils.rs @@ -80,10 +80,14 @@ impl Drop for ChildGuard { /// Spawn a bpfd process pub fn start_bpfd() -> Result { 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));