Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
93b0ab27
Commit
93b0ab27
authored
11 years ago
by
Eugine Blikh
Browse files
Options
Downloads
Patches
Plain Diff
fixing broken version of find_tests. remove commented code
parent
9b9d9cc6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/lib/tarantool_server.py
+7
-16
7 additions, 16 deletions
test/lib/tarantool_server.py
with
7 additions
and
16 deletions
test/lib/tarantool_server.py
+
7
−
16
View file @
93b0ab27
...
...
@@ -467,21 +467,12 @@ class TarantoolServer(Server):
def
find_tests
(
self
,
test_suite
,
suite_path
):
def
patterned
(
test
,
patterns
):
answer
=
[]
for
i
in
patterns
:
if
test
.
name
.
find
(
i
)
!=
-
1
:
return
True
return
False
for
test_name
in
sorted
(
glob
.
glob
(
os
.
path
.
join
(
suite_path
,
"
*.test.py
"
))):
for
test_pattern
in
test_suite
.
args
.
tests
:
if
test_name
.
find
(
test_pattern
)
!=
-
1
:
test_suite
.
tests
.
append
(
PythonTest
(
test_name
,
test_suite
.
args
,
test_suite
.
ini
))
for
test_name
in
sorted
(
glob
.
glob
(
os
.
path
.
join
(
suite_path
,
"
*.test.lua
"
))):
for
test_pattern
in
test_suite
.
args
.
tests
:
if
test_name
.
find
(
test_pattern
)
!=
-
1
:
test_suite
.
tests
.
append
(
LuaTest
(
test_name
,
test_suite
.
args
,
test_suite
.
ini
))
# tests = [PythonTest(k, test_suite.args, test_suite.ini) for k in sorted(glob.glob(os.path.join(suite_path, "*.test.py" )))]
# tests += [LuaTest(k, test_suite.args, test_suite.ini) for k in sorted(glob.glob(os.path.join(suite_path, "*.test.lua")))]
# test_suite.tests = filter((lambda x: patterned(x, test_suite.args.tests)), tests)
answer
.
append
(
test
)
return
answer
tests
=
[
PythonTest
(
k
,
test_suite
.
args
,
test_suite
.
ini
)
for
k
in
sorted
(
glob
.
glob
(
os
.
path
.
join
(
suite_path
,
"
*.test.py
"
)))]
tests
+=
[
LuaTest
(
k
,
test_suite
.
args
,
test_suite
.
ini
)
for
k
in
sorted
(
glob
.
glob
(
os
.
path
.
join
(
suite_path
,
"
*.test.lua
"
)))]
test_suite
.
tests
=
sum
(
map
((
lambda
x
:
patterned
(
x
,
test_suite
.
args
.
tests
)),
tests
),
[])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment