Merge "[Reports] Get rid of Mako in reports, finally"

This commit is contained in:
Jenkins 2016-10-20 10:40:05 +00:00 committed by Gerrit Code Review
commit 0c2b3648d2
3 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ python $BASE/new/rally/tests/ci/osresources.py\
rally -v --rally-debug task start --task $TASK $TASK_ARGS
mkdir -p rally-plot/extra
python $BASE/new/rally/tests/ci/render.py ci/index.mako > rally-plot/extra/index.html
python $BASE/new/rally/tests/ci/render.py ci/index.html > rally-plot/extra/index.html
cp $TASK rally-plot/task.txt
tar -czf rally-plot/plugins.tar.gz -C $RALLY_PLUGINS_DIR .
rally task results | python -m json.tool > rally-plot/results.json

View File

@ -22,7 +22,7 @@ from rally.ui import utils
HELP_MESSAGE = (
"Usage:\n\t"
"render.py ci/template.mako"
"render.py ci/template.html"
"[<key-1>=<value-1> <key-2>=<value-2> ...]\n\n\t"
"Where key-1,value-1 and key-2,value-2 are key pairs of template.")

View File

@ -180,7 +180,7 @@ def main():
else:
print("Ignoring file %s" % fname)
print("Exit statuses: %r" % statuses)
template = utils.get_template("ci/index.mako")
template = utils.get_template("ci/index.html")
with open("rally-plot/extra/index.html", "w") as output:
output.write(template.render())
return any(statuses)