From c775b18cdc4e7651262ddd6eb31118a9b37f82cf Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Thu, 22 Aug 2024 12:40:46 -0400 Subject: [PATCH] Test test execution in CI --- crates/tracel-xtask/src/commands/vulnerabilities.rs | 2 ++ crates/tracel-xtask/src/utils/process.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/tracel-xtask/src/commands/vulnerabilities.rs b/crates/tracel-xtask/src/commands/vulnerabilities.rs index bc161c0..306518c 100644 --- a/crates/tracel-xtask/src/commands/vulnerabilities.rs +++ b/crates/tracel-xtask/src/commands/vulnerabilities.rs @@ -334,6 +334,7 @@ mod tests { fn test_is_target_supported(#[case] installed_targets: Vec, #[case] expected: bool) { let mock_retriever = MockTargetRetriever::new(installed_targets); let sanitizer = Sanitizer::Memory; + // std::thread::sleep(std::time::Duration::from_secs(1)); assert_eq!(sanitizer.is_target_supported(&mock_retriever), expected); } @@ -350,6 +351,7 @@ mod tests { Target::X8664UnknownFreebsd, Target::X8664UnknownLinuxGnu, ]; + // std::thread::sleep(std::time::Duration::from_secs(1)); for variant in variants { let variant_str = format!("{}", variant); let parsed_variant = Target::from_str(&variant_str); diff --git a/crates/tracel-xtask/src/utils/process.rs b/crates/tracel-xtask/src/utils/process.rs index e33f391..c9c3d4b 100644 --- a/crates/tracel-xtask/src/utils/process.rs +++ b/crates/tracel-xtask/src/utils/process.rs @@ -63,6 +63,7 @@ pub fn run_process_for_workspace<'a>( group_info!("Command line: cargo {}", args.join(" ")); let mut child = Command::new(name) .args(&args) + .stdout(Stdio::inherit()) .stderr(Stdio::piped()) .spawn() .map_err(|e| {