blob: ae64f3c5386bb30a5bf5449014ad5e81a83416e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import sys
import cosmetics
def task_done(test, error):
s = "[%s] Running tests on %s ..." % (test.base_dir.upper(),
" ".join(test.command_line))
already_printed = len(s)
if error is not None:
cosmetics.write_colored("ERROR", "red", already_printed)
print error
else:
cosmetics.write_colored("OK", "green", already_printed)
def task_new(test):
s = "[%s] Running tests on %s ..." % (test.base_dir.upper(),
" ".join(test.command_line))
sys.stdout.write(s)
sys.stdout.flush()
|