From 97bd968b2aa5fd28ced5bd86aaf4b1ead31c417f Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 30 May 2024 14:46:45 +0200 Subject: [PATCH] Check for existence of preprocessed files --- tests/end-to-end.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/end-to-end.rs b/tests/end-to-end.rs index 771dfc368..8bce2eeac 100644 --- a/tests/end-to-end.rs +++ b/tests/end-to-end.rs @@ -207,6 +207,12 @@ fn request_nearest(world: &mut OSRMWorld, step: &Step) { } // if extracted file does not exist + let cache_path = cache_path.join(&world.osrm_digest); + if cache_path.exists() { + println!("{cache_path:?} exists"); + } else { + println!("{cache_path:?} does not exist"); + } // extract osm file (partition, preprocess) // parse table from Step and build query list