Commit 3a8793c2 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Report test result with better output layout

parent a4284206
......@@ -10,10 +10,14 @@ def main():
paths = sys.argv[2:]
for path in paths:
sys.stdout.write('\033[0m')
sys.stdout.write(path[:-1] + ' ... ')
sys.stdout.flush()
result = make(path, rule)
make(path, 'clean')
results.append(result)
sys.stdout.write('.' if result[0] == 0 else 'F')
sys.stdout.write('\033[1m\033[')
sys.stdout.write('32m[OK]\n' if result[0] == 0 else '31mFAILED\n')
sys.stdout.flush()
sys.stdout.write('\n')
......
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