Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
ff37a2c0
Commit
ff37a2c0
authored
Apr 22, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make testrunner.py use mysubprocess.py
parent
64cd7c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
greentest/testrunner.py
greentest/testrunner.py
+2
-13
No files found.
greentest/testrunner.py
View file @
ff37a2c0
...
@@ -215,18 +215,7 @@ def run_tests(options, args):
...
@@ -215,18 +215,7 @@ def run_tests(options, args):
def
run_subprocess
(
arg
,
options
):
def
run_subprocess
(
arg
,
options
):
from
threading
import
Timer
from
threading
import
Timer
import
subprocess
from
mysubprocess
import
Popen
,
PIPE
,
STDOUT
if
hasattr
(
subprocess
.
Popen
,
'kill'
):
Popen
=
subprocess
.
Popen
else
:
class
Popen
(
subprocess
.
Popen
):
def
kill
(
self
):
try
:
from
os
import
kill
kill
(
self
.
pid
,
9
)
except
ImportError
:
pass
popen_args
=
[
sys
.
executable
,
sys
.
argv
[
0
],
'--record'
,
popen_args
=
[
sys
.
executable
,
sys
.
argv
[
0
],
'--record'
,
'--runid'
,
options
.
runid
,
'--runid'
,
options
.
runid
,
...
@@ -236,7 +225,7 @@ def run_subprocess(arg, options):
...
@@ -236,7 +225,7 @@ def run_subprocess(arg, options):
popen_args
+=
[
arg
]
popen_args
+=
[
arg
]
popen_args
=
[
str
(
x
)
for
x
in
popen_args
]
popen_args
=
[
str
(
x
)
for
x
in
popen_args
]
if
options
.
capture
:
if
options
.
capture
:
popen
=
Popen
(
popen_args
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
,
shell
=
False
)
popen
=
Popen
(
popen_args
,
stdout
=
PIPE
,
stderr
=
STDOUT
,
shell
=
False
)
else
:
else
:
popen
=
Popen
(
popen_args
,
shell
=
False
)
popen
=
Popen
(
popen_args
,
shell
=
False
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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