Skip to content

Commit

Permalink
reduce import diff and always print stdout in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scootermon committed Jan 16, 2024
1 parent c8c61a2 commit 3079bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cc-test/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::env;
use std::fs;
use std::path::{Path, PathBuf};
use std::process::Command;
use std::{env, fs};

fn main() {
// if we are being executed from a `fork_run_action` call (i.e. this is a
Expand Down
2 changes: 2 additions & 0 deletions cc-test/tests/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ fn load_output(action: &str) -> (String, String) {
let action_dir = PathBuf::from(env!("OUT_DIR")).join(action);
let stdout = fs::read_to_string(action_dir.join("stdout")).unwrap();
let stderr = fs::read_to_string(action_dir.join("stderr")).unwrap();
println!("compile stdout: {:?}", action, stdout);
println!("compile stderr: {:?}", action, stderr);
(stdout, stderr)
}

0 comments on commit 3079bb0

Please sign in to comment.