mirror of
https://github.com/cea-sec/miasm
synced 2026-06-21 13:48:18 +00:00
25 lines
782 B
Python
25 lines
782 B
Python
import sys
|
|
import cosmetics
|
|
import time
|
|
|
|
|
|
def task_done(test, error, test_ok, test_ko):
|
|
command_line = " ".join(test.command_line)
|
|
if error is not None:
|
|
print cosmetics.colors["red"] + 'ERROR',
|
|
print cosmetics.colors["lightcyan"] + command_line + cosmetics.colors["end"]
|
|
print error
|
|
test_ko.append((test, error))
|
|
else:
|
|
print cosmetics.colors["green"] + 'DONE',
|
|
print cosmetics.colors["lightcyan"] + command_line + cosmetics.colors["end"],
|
|
print "%ds" % (time.time() - test.start_time)
|
|
test_ok.append((test, error))
|
|
|
|
|
|
def task_new(test):
|
|
command_line = " ".join(test.command_line)
|
|
print cosmetics.colors["lightcyan"],
|
|
print test.base_dir.upper(), command_line,
|
|
print cosmetics.colors["end"]
|