Skip to content

Commit

Permalink
Fix 'build' command to pass '--vm-type' option to the underlying buil…
Browse files Browse the repository at this point in the history
…d tool
  • Loading branch information
dmach committed Sep 27, 2023
1 parent 9bce61c commit eba7f84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ def su_wrapper(cmd):
def run_build(opts, *args):
cmd = [conf.config['build-cmd']]
cmd += args
cmd = su_wrapper(cmd)

if opts.vm_type:
cmd.extend(["--vm-type", opts.vm_type])

Check warning on line 653 in osc/build.py

View check run for this annotation

Codecov / codecov/patch

osc/build.py#L652-L653

Added lines #L652 - L653 were not covered by tests

user = calculate_build_root_user(opts.vm_type)
if not user:
Expand Down

0 comments on commit eba7f84

Please sign in to comment.