From f841a7a25a317d7f6d5f35c3ce8285501264535a Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Fri, 24 Feb 2012 14:55:15 +0100 Subject: [PATCH] reprocess data files during tests if osrm-routed binary has changed --- features/support/hash.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/features/support/hash.rb b/features/support/hash.rb index e944ea141..c47369082 100644 --- a/features/support/hash.rb +++ b/features/support/hash.rb @@ -31,8 +31,12 @@ def bin_prepare_hash @bin_hash ||= hash_of_file '../osrm-prepare' end -#combine state of data, speedprofile and binaries into a hash that identifies the exact test scenario -def fingerprint - @fingerprint ||= Digest::SHA1.hexdigest "#{bin_extract_hash}-#{bin_prepare_hash}-#{speedprofile_hash}-#{osm_hash}" +def bin_routed_hash + @bin_hash ||= hash_of_file '../osrm-routed' +end + +#combine state of data, speedprofile and binaries into a hash that identifies the exact test scenario +def fingerprint + @fingerprint ||= Digest::SHA1.hexdigest "#{bin_extract_hash}-#{bin_prepare_hash}-#{bin_routed_hash}-#{speedprofile_hash}-#{osm_hash}" end