Commit 9c20234a authored by Ivan Tyagov's avatar Ivan Tyagov

Clean ups.

parent a0aa60de
......@@ -6,6 +6,7 @@ import argparse, sys, subprocess, os, glob
import traceback
from erp5.util import taskdistribution
import re
from time import gmtime, strftime
# pattern to get test counts from stdout
SUMMARY_RE = re.compile( \
......@@ -100,6 +101,7 @@ def main():
# run NEO tests
test_result_line = test_result.start()
# XXX: add '-z' - i.e. ZODB tests when find out why it stalled execution.
args = [RUN_NEO_TESTS_COMMAND, '-ufv']
command = ' '.join(args)
......@@ -118,11 +120,15 @@ def main():
command=command,
stderr=traceback.format_exc(),
stdout='')
# XXX: inform test node master of error
raise EnvironmentError(result)
# parse test stdout / stderr, hint to speed up use files first!
stdout = p.stdout.read()
date = strftime("%Y/%m/%d %H:%M:%S", gmtime())
test_count, error_count, expected_count, skip_count, duration = parseTestStdOut(stdout)
# print to stdout so we can see in testnode logs
print test_result_line
print stdout
......@@ -133,10 +139,10 @@ def main():
failure_count = expected_count,
skip_count = skip_count,
duration = duration,
date = None, # XXX: date when test run or when finished ?
date = date,
command = command,
stdout= stdout,
stderr='stderr', # XXX:catch it
stderr= None,
html_test_result='')
if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment