Skip to content

Commit

Permalink
Return exitcode when "osc results" is falling through prjresults
Browse files Browse the repository at this point in the history
Otherwise a failure from osc prjresults does not propagate
up.
  • Loading branch information
dirkmueller committed Feb 4, 2019
1 parent 555efc8 commit a760e2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5203,8 +5203,7 @@ def do_results(self, subcmd, opts, *args):
opts.vertical = None
opts.show_non_building = None
opts.show_excluded = None
self.do_prjresults('prjresults', opts, *args)
return
return self.do_prjresults('prjresults', opts, *args)

if opts.xml and opts.csv:
raise oscerr.WrongOptions("--xml and --csv are mutual exclusive")
Expand Down Expand Up @@ -6335,7 +6334,7 @@ def do_build(self, subcmd, opts, *args):

if opts.preload:
opts.nopreinstallimage = True

print('Building %s for %s/%s' % (args[2], args[0], args[1]))
if not opts.host:
return osc.build.main(self.get_api_url(), opts, args)
Expand Down

0 comments on commit a760e2b

Please sign in to comment.