From 3e021fd950fbec51ec8a06c6b0bd0bc049351599 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 22 Oct 2020 15:51:59 +1000 Subject: [PATCH] add debug info test is passing on my local machine; need to figure out how CI differs --- examples/env_locations/build.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/env_locations/build.rs b/examples/env_locations/build.rs index 9e63d61b10..7170b59b77 100644 --- a/examples/env_locations/build.rs +++ b/examples/env_locations/build.rs @@ -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::>() + ); + println!( + "files in parent: {:?}", + std::fs::read_dir("..").unwrap().collect::>() + ); + 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");