Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Connectivity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LMODroid
platform_packages_modules_Connectivity
Commits
fb94c31f
Commit
fb94c31f
authored
2 years ago
by
Chidera Olibie
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Do not jarjar tests if explicitly excluded."
parents
136f5106
69429571
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/gen_jarjar.py
+5
-3
5 additions, 3 deletions
tools/gen_jarjar.py
with
5 additions
and
3 deletions
tools/gen_jarjar.py
+
5
−
3
View file @
fb94c31f
...
...
@@ -120,9 +120,11 @@ def make_jarjar_rules(args):
_get_toplevel_class
(
clazz
)
not
in
excluded_classes
and
not
any
(
r
.
fullmatch
(
clazz
)
for
r
in
exclude_regexes
)):
outfile
.
write
(
f
'
rule
{
clazz
}
{
args
.
prefix
}
.@0
\n
'
)
# Also include jarjar rules for unit tests of the class, so the package matches
outfile
.
write
(
f
'
rule
{
clazz
}
Test
{
args
.
prefix
}
.@0
\n
'
)
outfile
.
write
(
f
'
rule
{
clazz
}
Test$*
{
args
.
prefix
}
.@0
\n
'
)
# Also include jarjar rules for unit tests of the class if it's not explicitly
# excluded, so the package matches
if
not
any
(
r
.
fullmatch
(
clazz
+
'
Test
'
)
for
r
in
exclude_regexes
):
outfile
.
write
(
f
'
rule
{
clazz
}
Test
{
args
.
prefix
}
.@0
\n
'
)
outfile
.
write
(
f
'
rule
{
clazz
}
Test$*
{
args
.
prefix
}
.@0
\n
'
)
def
_main
():
...
...
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