ut: cli - test_upload_progress_callback

This commit is contained in:
Yuming Zhu 2016-10-11 19:13:48 +00:00 committed by Mike McLean
parent 90d723b01a
commit dcb2d2336e
2 changed files with 48 additions and 2 deletions

View file

@ -149,7 +149,7 @@ Try "%(progname)s help" to get all available commands
Try "%(progname)s <command> --help" for help about the options of a particular command
Try "%(progname)s help <category>" to get commands under a particular category
Available categories are: %(categories)s
''' % ({'progname': progname, 'categories': categories_ordered})
''' % ({'progname': progname, 'categories': categories_ordered})
return _(epilog_str)
def get_options():
@ -889,7 +889,7 @@ def _format_size(size):
def _format_secs(t):
h = t / 3600
t = t % 3600
t %= 3600
m = t / 60
s = t % 60
return "%02d:%02d:%02d" % (h, m, s)
@ -962,6 +962,7 @@ def handle_build(options, session, args):
parser.error(_("Destination tag %s is locked" % dest_tag['name']))
source = args[1]
opts = {}
print build_opts
if build_opts.arch_override:
opts['arch_override'] = ' '.join(build_opts.arch_override.replace(',',' ').split())
for key in ('skip_tag', 'scratch', 'repo_id'):