From b8f0adb40dd3c1342123ba6ae9b8a42fbf1fcb71 Mon Sep 17 00:00:00 2001 From: David Alber Date: Sun, 11 Feb 2018 21:43:35 -0800 Subject: [PATCH] Fixing path to Configurations.md Issue #2419 changed the directory in which `configuration_snippet_tests` runs, which broke the test. Since the test is currently annotated with `#[ignore]`, the break wasn't caught before merge. --- rustfmt-core/tests/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfmt-core/tests/lib.rs b/rustfmt-core/tests/lib.rs index be72cb8a9ef..fdb2421fd67 100644 --- a/rustfmt-core/tests/lib.rs +++ b/rustfmt-core/tests/lib.rs @@ -792,7 +792,7 @@ fn configuration_snippet_tests() { // entry for each Rust code block found. fn get_code_blocks() -> Vec { let mut file_iter = BufReader::new( - fs::File::open(CONFIGURATIONS_FILE_NAME) + fs::File::open(Path::new("..").join(CONFIGURATIONS_FILE_NAME)) .expect(&format!("Couldn't read file {}", CONFIGURATIONS_FILE_NAME)), ).lines() .map(|l| l.unwrap())