1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Fix the test runner.

This commit is contained in:
Simon Sapin 2012-06-01 20:05:18 +02:00
parent 95e0ad2707
commit 1bb70b09c8

View File

@ -27,10 +27,10 @@ LOGGER.handlers = []
LOGGER.addHandler(logging.NullHandler())
def run_all(suite_directory):
def run_simple(suite_directory):
from flask import safe_join
chapters, tests = prepare_test_data(suite_directory)
tests = sorted(tests)[1123:]
tests = sorted(tests)
for i, test_id in enumerate(tests):
print('%s of %s %s' % (i, len(tests), test_id))
filename = safe_join(suite_directory, test_id + '.htm')
@ -50,8 +50,6 @@ def run(suite_directory):
chapters, tests = prepare_test_data(suite_directory)
# tests = list(tests)[:400]
length = len(tests)
from flask import safe_join
tests = sorted(
(test_id, filename)
@ -60,7 +58,8 @@ def run(suite_directory):
for test_id in tests
)
if os.path.exists(filename)
)[9300:]
)
length = len(tests)
errors = open('/tmp/a.txt', 'w')
pool = multiprocessing.Pool(2)