From b2cd68b118d4e29f044ec091dd4e316a1cbd49ed Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 14 Feb 2013 21:45:56 +0000 Subject: [PATCH] Boostbook: Fix `run-tests.py` for new `generate-id`. The form of the generated ids has changed due to a security issue. [SVN r82890] --- test/more/run-tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/more/run-tests.py b/test/more/run-tests.py index 2a56795..f457569 100755 --- a/test/more/run-tests.py +++ b/test/more/run-tests.py @@ -90,7 +90,7 @@ def normalize_boostbook_ids(doc): if(id in ids): print 'Duplicate id: ' + id - match = re.match("(id|.+_id)(\d+)((?:-bb)?)", id) + match = re.match("(id|.+_id)([mp]?\d+)((?:-bb)?)", id) if(match): count = 1 if(match.group(1) in id_bases): @@ -119,4 +119,4 @@ def compare_xml(file, doc_text, gold_text): ) if __name__ == "__main__": - main(sys.argv[1:]) \ No newline at end of file + main(sys.argv[1:])