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
4af104aa
Commit
4af104aa
authored
May 19, 2013
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'aapt' tool moved in SDK r22, adding support to run.py
parent
aee6a617
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
run.py
modules/ts/misc/run.py
+10
-0
No files found.
modules/ts/misc/run.py
View file @
4af104aa
...
...
@@ -288,6 +288,16 @@ class TestSuite(object):
if
self
.
adb
:
# construct name for aapt tool
self
.
aapt
=
[
os
.
path
.
join
(
os
.
path
.
dirname
(
self
.
adb
[
0
]),
(
"aapt"
,
"aapt.exe"
)[
hostos
==
'nt'
])]
if
not
os
.
path
.
isfile
(
self
.
aapt
[
0
]):
# it's moved in SDK r22
sdk_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
self
.
adb
[
0
])
)
aapt_fn
=
(
"aapt"
,
"aapt.exe"
)[
hostos
==
'nt'
]
for
r
,
ds
,
fs
in
os
.
walk
(
os
.
path
.
join
(
sdk_dir
,
'build-tools'
)
):
if
aapt_fn
in
fs
:
self
.
aapt
=
[
os
.
path
.
join
(
r
,
aapt_fn
)
]
break
else
:
self
.
error
=
"Can't find '
%
s' tool!"
%
aapt_fn
# fix has_perf_tests param
self
.
has_perf_tests
=
self
.
has_perf_tests
==
"ON"
...
...
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