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
c8207779
Commit
c8207779
authored
Oct 10, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Oct 10, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1596 from alalek:test_fix_run_py
parents
3b1c53fa
3eba2011
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
run.py
modules/ts/misc/run.py
+14
-6
No files found.
modules/ts/misc/run.py
View file @
c8207779
...
...
@@ -7,6 +7,8 @@ from subprocess import Popen, PIPE
hostos
=
os
.
name
# 'nt', 'posix'
hostmachine
=
platform
.
machine
()
# 'x86', 'AMD64', 'x86_64'
errorCode
=
0
SIMD_DETECTION_PROGRAM
=
"""
#if __SSE5__
# error SSE5
...
...
@@ -641,6 +643,8 @@ class TestSuite(object):
return
True
def
runTest
(
self
,
path
,
workingDir
,
_stdout
,
_stderr
,
args
=
[]):
global
errorCode
if
self
.
error
:
return
args
=
args
[:]
...
...
@@ -759,9 +763,9 @@ class TestSuite(object):
print
>>
_stderr
,
"Run command:"
,
" "
.
join
(
cmd
)
try
:
Popen
(
cmd
,
stdout
=
_stdout
,
stderr
=
_stderr
,
cwd
=
self
.
java_test_binary_dir
+
"/.build"
)
.
wait
()
except
OSError
:
p
ass
errorCode
=
Popen
(
cmd
,
stdout
=
_stdout
,
stderr
=
_stderr
,
cwd
=
self
.
java_test_binary_dir
+
"/.build"
)
.
wait
()
except
:
p
rint
"Unexpected error:"
,
sys
.
exc_info
()[
0
]
return
None
else
:
...
...
@@ -777,9 +781,9 @@ class TestSuite(object):
print
>>
_stderr
,
"Run command:"
,
" "
.
join
(
cmd
)
try
:
Popen
(
cmd
,
stdout
=
_stdout
,
stderr
=
_stderr
,
cwd
=
workingDir
)
.
wait
()
except
OSError
:
p
ass
errorCode
=
Popen
(
cmd
,
stdout
=
_stdout
,
stderr
=
_stderr
,
cwd
=
workingDir
)
.
wait
()
except
:
p
rint
"Unexpected error:"
,
sys
.
exc_info
()[
0
]
# clean temporary files
if
orig_temp_path
:
...
...
@@ -891,3 +895,7 @@ if __name__ == "__main__":
if
logs
:
print
>>
sys
.
stderr
,
"Collected: "
,
" "
.
join
(
logs
)
if
errorCode
!=
0
:
print
"Error code: "
,
errorCode
,
(
" (0x
%
x)"
%
(
errorCode
&
0xffffffff
))
exit
(
errorCode
)
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