Boostbook: Fix run-tests.py for new generate-id.

The form of the generated ids has changed due to a security issue.

[SVN r82890]
This commit is contained in:
Daniel James 2013-02-14 21:45:56 +00:00
parent e33a468009
commit b2cd68b118

View File

@ -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:])
main(sys.argv[1:])