From 4850626fc2f8986b6a161c53d515f1d1c0aa9028 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 14 Apr 2013 09:01:50 +0200 Subject: [PATCH] Remove unused file. --- tests/make_table.py | 56 --------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 tests/make_table.py diff --git a/tests/make_table.py b/tests/make_table.py deleted file mode 100644 index b48f83346..000000000 --- a/tests/make_table.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/python -import sys -import codecs - -HTML_START = """ - - - - Dosage comic status - - -""" - -HTML_END = """ - -""" - - -def main(args=None): - if args is None: - args = sys.argv[1:] - filename = 'testresults.txt' - with open(filename) as fp: - tests = parse_test_data(fp) - output = 'table.html' - with codecs.open(output, 'w', 'utf-8') as fp: - render_test_data(tests, fp) - - -def get_comic_name(line): - return line.split('::')[1][4:] - - -def parse_test_data(fp): - data = [] - for line in fp: - if line.rstrip().endswith('::test_comic'): - name = get_comic_name(line) - failed = line.startswith('F') - data.append((name, failed)) - data.sort() - return data - - -def render_test_data(tests, fp): - fp.write(HTML_START) - fp.write('\n') - for name, failed in tests: - status = failed and "broken" or "ok" - fp.write('\n' % (name, status)) - fp.write('
NameStatus
%s%s
\n') - fp.write(HTML_END) - - -if __name__ == '__main__': - main()