From 2edfc34b89684d0a99b4f32f70e21536b3109921 Mon Sep 17 00:00:00 2001 From: Olivier Dufour Date: Fri, 7 Jun 2013 11:06:38 +0200 Subject: validation/test/av_home: fix some RST formating issues, closes #4042 --- validation/test/av_home/av_home.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'validation/test/av_home/av_home.py') diff --git a/validation/test/av_home/av_home.py b/validation/test/av_home/av_home.py index 57185a25d0..13b15b992a 100755 --- a/validation/test/av_home/av_home.py +++ b/validation/test/av_home/av_home.py @@ -356,8 +356,7 @@ def do_plot (direction, directory): pylab.clf() def get_test_data (): - tpl = """Test {name} -================ + tpl = """{name} :: @@ -385,12 +384,13 @@ Tonemaps and throughput dir_re = re.compile (r"^test_home-(.*)$") for d in sorted(directories): if dir_re.match (d): + name = get_name (dir_re.match (d).group (1)) desc = get_test_desc (d) discovery = get_field (d, "discovery") avln = get_field (d, "avln") attenuation = get_field (d, "attenuation") graph = get_graph (d) - result += tpl.format (name = dir_re.match (d).group (1), + result += tpl.format (name = name, desc = desc, discovery = discovery, avln = avln, @@ -398,6 +398,13 @@ Tonemaps and throughput graph = graph) return result +def get_name (name): + result = "Test %s:" % name + underline = "" + for i in xrange (len(result)): + underline += "=" + return result + "\n" + underline + def get_field (d, file): f = open (os.path.join (av_home_attr.prefix, d, "%s-master" % file), "r") value = f.read () -- cgit v1.2.3