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
d2f03721
Commit
d2f03721
authored
Jul 10, 2016
by
Maxime Perrotin
Browse files
Test script catch Ctrl-C
parent
4f9aed40
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/regression/test.py
View file @
d2f03721
...
...
@@ -2,6 +2,7 @@
import
subprocess
import
sys
import
time
import
signal
import
os
from
functools
import
partial
from
multiprocessing
import
cpu_count
...
...
@@ -68,6 +69,8 @@ def summarize(results, elapsed):
if
__name__
==
'__main__'
:
# Catch Ctrl-C to stop the app from the console
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
ret
=
main
()
sys
.
stdout
.
write
(
'
\033
[0m
\n
'
)
sys
.
stdout
.
flush
()
...
...
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