From 48075edf4de2020b23ef6f32fc8f523b48abb93b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 26 Sep 2009 09:46:04 -0400 Subject: XML report: now validates against the Cobertura dtd. --- test/farm/html/gold_x_xml/coverage.xml | 13 +++++++------ test/farm/html/run_x_xml.py | 5 ++++- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'test/farm/html') diff --git a/test/farm/html/gold_x_xml/coverage.xml b/test/farm/html/gold_x_xml/coverage.xml index 7d1d2a8e..8c009f5d 100644 --- a/test/farm/html/gold_x_xml/coverage.xml +++ b/test/farm/html/gold_x_xml/coverage.xml @@ -1,16 +1,17 @@ - - + + - + + - - - + + + diff --git a/test/farm/html/run_x_xml.py b/test/farm/html/run_x_xml.py index b3682940..fe9cefa7 100644 --- a/test/farm/html/run_x_xml.py +++ b/test/farm/html/run_x_xml.py @@ -13,5 +13,8 @@ if not os.path.exists("xml"): runfunc(html_it, rundir="src") -compare("gold_x_xml", "xml") +compare("gold_x_xml", "xml", scrubs=[ + (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), + (r' version="[-.\w]+"', ' version="VERSION"'), + ]) clean("xml") -- cgit v1.2.1