Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
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
Very Demiurge Very Mindful
Kolla Ansible
Commits
d860c7d4
Commit
d860c7d4
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix kolla-build return codes"
parents
9bd4058b
18ae114e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kolla/cmd/build.py
+9
-1
9 additions, 1 deletion
kolla/cmd/build.py
tests/test_build.py
+1
-1
1 addition, 1 deletion
tests/test_build.py
with
10 additions
and
2 deletions
kolla/cmd/build.py
+
9
−
1
View file @
d860c7d4
...
...
@@ -737,7 +737,7 @@ class KollaWorker(object):
return
queue
def
main
():
def
run_build
():
conf
=
cfg
.
ConfigOpts
()
common_config
.
parse
(
conf
,
sys
.
argv
[
1
:],
prog
=
'
kolla-build
'
)
...
...
@@ -791,5 +791,13 @@ def main():
return
kolla
.
get_image_statuses
()
def
main
():
bad_results
,
good_results
,
unmatched_results
=
run_build
()
if
len
(
bad_results
):
return
1
else
:
return
0
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
tests/test_build.py
+
1
−
1
View file @
d860c7d4
...
...
@@ -43,7 +43,7 @@ class BuildTest(object):
def
runTest
(
self
):
with
patch
.
object
(
sys
,
'
argv
'
,
self
.
build_args
):
LOG
.
info
(
"
Running with args %s
"
,
self
.
build_args
)
bad_results
,
good_results
,
unmatched_results
=
build
.
main
()
bad_results
,
good_results
,
unmatched_results
=
build
.
run_build
()
failures
=
0
for
image
,
result
in
six
.
iteritems
(
bad_results
):
...
...
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