From 8abb6c24cd26b64d708a74faaa28cc9294dc3466 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 9 Feb 2020 17:47:58 +0000 Subject: Move ui outputs to a sensible place --- dhall/build.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'dhall/build.rs') diff --git a/dhall/build.rs b/dhall/build.rs index 3955b3a..67f11e2 100644 --- a/dhall/build.rs +++ b/dhall/build.rs @@ -110,14 +110,14 @@ fn make_test_module( } Some(output_type @ FileType::UI) => { let input = feature.input_type.construct(&path); - let output_file = PathBuf::from(path.as_ref()) - .strip_prefix(base_path) - .unwrap() - .strip_prefix(feature.directory) - .unwrap() - .to_string_lossy() - .into_owned(); - let output = output_type.construct(&output_file); + // All ui outputs are in the local `tests/` directory. + let output_file = PathBuf::from("tests/").join( + PathBuf::from(path.as_ref()) + .strip_prefix(base_path) + .unwrap(), + ); + let output = + output_type.construct(&output_file.to_str().unwrap()); format!("{}({}, {})", feature.variant, input, output) } Some(output_type) => { -- cgit v1.2.3