Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8f2eb607
Commit
8f2eb607
authored
Sep 29, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12690 from cv3d:fix/ts_python_exe
parents
a1ffc00b
1a81a97e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
run_suite.py
modules/ts/misc/run_suite.py
+3
-0
No files found.
modules/ts/misc/run_suite.py
View file @
8f2eb607
#!/usr/bin/env python
#!/usr/bin/env python
import
os
import
os
import
re
import
re
import
sys
from
run_utils
import
Err
,
log
,
execute
,
getPlatformVersion
,
isColorEnabled
,
TempEnvDir
from
run_utils
import
Err
,
log
,
execute
,
getPlatformVersion
,
isColorEnabled
,
TempEnvDir
from
run_long
import
LONG_TESTS_DEBUG_VALGRIND
,
longTestFilter
from
run_long
import
LONG_TESTS_DEBUG_VALGRIND
,
longTestFilter
...
@@ -116,6 +117,8 @@ class TestSuite(object):
...
@@ -116,6 +117,8 @@ class TestSuite(object):
return
None
,
ret
return
None
,
ret
elif
module
in
[
'python2'
,
'python3'
]:
elif
module
in
[
'python2'
,
'python3'
]:
executable
=
os
.
getenv
(
'OPENCV_PYTHON_BINARY'
,
None
)
executable
=
os
.
getenv
(
'OPENCV_PYTHON_BINARY'
,
None
)
if
executable
is
None
or
module
==
'python{}'
.
format
(
sys
.
version_info
[
0
]):
executable
=
sys
.
executable
if
executable
is
None
:
if
executable
is
None
:
executable
=
path
executable
=
path
if
not
self
.
tryCommand
([
executable
,
'--version'
],
workingDir
):
if
not
self
.
tryCommand
([
executable
,
'--version'
],
workingDir
):
...
...
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