1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Check error state suspending clean build server

This commit is contained in:
Ciaran Gultnieks 2013-07-19 07:13:18 +01:00
parent 81244971ae
commit c395e3ae68

View File

@ -145,7 +145,8 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, sdk_path, force):
sshs.close()
print "Saving clean state of new build server"
subprocess.call(['vagrant', 'suspend'], cwd='builder')
if subprocess.call(['vagrant', 'suspend'], cwd='builder') != 0:
raise BuildException("Failed to suspend build server")
if subprocess.call(['VBoxManage', 'snapshot', get_builder_vm_id(), 'take', 'fdroidclean'],
cwd='builder') != 0:
raise BuildException("Failed to take snapshot")