Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
3a8793c2
Commit
3a8793c2
authored
Mar 19, 2015
by
Maxime Perrotin
Browse files
Report test result with better output layout
parent
a4284206
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/regression/test.py
View file @
3a8793c2
...
...
@@ -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
'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment