Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
test is passing on my local machine; need to figure out how CI differs
  • Loading branch information
dae committed Oct 22, 2020
1 parent c5ee4d2 commit 3e021fd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/env_locations/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
fn main() {
println!("data path is {:?}", env!("GENERATED_DATA"));
println!("cwd is {:?}", std::env::current_dir());
println!(
"files in cwd: {:?}",
std::fs::read_dir(".").unwrap().collect::<Vec<_>>()
);
println!(
"files in parent: {:?}",
std::fs::read_dir("..").unwrap().collect::<Vec<_>>()
);

let generated_data = std::fs::read_to_string(env!("GENERATED_DATA")).unwrap();
// our generated data file should be readable
assert_eq!(generated_data, "hello\n");
Expand Down

0 comments on commit 3e021fd

Please sign in to comment.