mirror of
https://github.com/servo/servo.git
synced 2025-07-16 11:53:39 +01:00
Fail faster on CI when Linux bootstrap fails
Raise an exception when dependencies fail to install. Also split the run phase of the Linux bootstrap so that either of these failing commands will cause the job to fail.
This commit is contained in:
parent
806db676b0
commit
677414730b
3 changed files with 14 additions and 14 deletions
|
@ -59,11 +59,13 @@ def install_linux_deps(context, pkgs_ubuntu, pkgs_fedora, pkgs_void, force):
|
|||
install = force = True
|
||||
break
|
||||
|
||||
if install:
|
||||
print("Installing missing dependencies...")
|
||||
run_as_root(command + pkgs, force)
|
||||
if not install:
|
||||
return False
|
||||
|
||||
return install
|
||||
print("Installing missing dependencies...")
|
||||
if run_as_root(command + pkgs, force) != 0:
|
||||
raise Exception("Installation of dependencies failed.")
|
||||
return True
|
||||
|
||||
|
||||
def install_salt_dependencies(context, force):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue