From 0fcf4d1e0764c8d261014c32d1b87c197cf5444d Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Sat, 14 Jan 2012 15:53:33 -0500 Subject: [PATCH] Regtest script: Keep the folder prefix in the name. Two files with the same basename can occur under two different folders. They should be tracked as two separate files. --- scripts/build/output-distance.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build/output-distance.py b/scripts/build/output-distance.py index 63b2853dae..cf213da8b1 100755 --- a/scripts/build/output-distance.py +++ b/scripts/build/output-distance.py @@ -887,14 +887,18 @@ class ComparisonData: self.compare_general_files (klasses[ext], f1, f2) def compare_general_files (self, klass, f1, f2): + prefix = os.path.commonprefix ([f1, f2]) name = os.path.split (f1)[1] + name = os.path.join (prefix, name) file_link = klass (f1, f2) self.file_links[name] = file_link def compare_signature_files (self, f1, f2): + prefix = os.path.commonprefix ([f1, f2]) name = os.path.split (f1)[1] name = re.sub ('-[0-9]+.signature', '', name) + name = os.path.join (prefix, name) file_link = None try: -- 2.39.5