ut: cli - test_chain_build
cli.handle_chain_build: remove unused '--noprogress'
add '--quiet'
This commit is contained in:
parent
ae90e278d0
commit
2aec75f476
2 changed files with 545 additions and 6 deletions
12
cli/koji
12
cli/koji
|
|
@ -1001,8 +1001,8 @@ def handle_chain_build(options, session, args):
|
|||
parser = OptionParser(usage=usage)
|
||||
parser.add_option("--nowait", action="store_true",
|
||||
help=_("Don't wait on build"))
|
||||
parser.add_option("--noprogress", action="store_true",
|
||||
help=_("Do not display progress of the upload"))
|
||||
parser.add_option("--quiet", action="store_true",
|
||||
help=_("Do not print the task information"), default=options.quiet)
|
||||
parser.add_option("--background", action="store_true",
|
||||
help=_("Run the build at a lower priority"))
|
||||
(build_opts, args) = parser.parse_args(args)
|
||||
|
|
@ -1059,14 +1059,14 @@ def handle_chain_build(options, session, args):
|
|||
priority = 5
|
||||
|
||||
task_id = session.chainBuild(src_list, target, priority=priority)
|
||||
|
||||
print "Created task:", task_id
|
||||
print "Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)
|
||||
if not build_opts.quiet:
|
||||
print "Created task:", task_id
|
||||
print "Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)
|
||||
if _running_in_bg() or build_opts.nowait:
|
||||
return
|
||||
else:
|
||||
session.logout()
|
||||
return watch_tasks(session,[task_id],quiet=options.quiet)
|
||||
return watch_tasks(session, [task_id], quiet=options.quiet)
|
||||
|
||||
def handle_maven_build(options, session, args):
|
||||
"[build] Build a Maven package from source"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue