summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-01-18 21:23:21 +0300
committersyn <isaqtm@gmail.com>2020-01-18 21:23:21 +0300
commit326eea2a59784deda086c851d5794a5eb534659b (patch)
treeb3d33c9766f66d220f3d6e7060cfee99f4408145 /src
parentc5c41582a258996f3637f6cb586e5eaea56c1bd5 (diff)
downloadevr-326eea2a59784deda086c851d5794a5eb534659b.tar.gz
Report if reading test from file
Diffstat (limited to 'src')
-rw-r--r--src/backends/python.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backends/python.rs b/src/backends/python.rs
index 2398997..8c95e2c 100644
--- a/src/backends/python.rs
+++ b/src/backends/python.rs
@@ -36,8 +36,11 @@ impl Backend for PythonBackend {
fn run(&self, fname: &Path) -> std::io::Result<RunStatus> {
let stdio = match self.try_guess_test_file(fname) {
- Some(test_filename) => match File::open(test_filename) {
- Ok(test_content) => Stdio::from(test_content),
+ Some(test_filename) => match File::open(&test_filename) {
+ Ok(test_content) => {
+ println!("Using {}", test_filename.as_path().display());
+ Stdio::from(test_content)
+ },
Err(err) => {
warn!("Could not open test file. Fallback to piped: {}", err);
Stdio::piped()