Display build times for the binary builds

This commit is contained in:
Kovid Goyal 2014-07-12 14:45:51 +05:30
parent 1c93c4732d
commit 65d6c5979c

View File

@ -158,7 +158,9 @@ class VMInstaller(Command):
def run(self, opts): def run(self, opts):
subprocess.call(['chmod', '-R', '+r', 'recipes']) subprocess.call(['chmod', '-R', '+r', 'recipes'])
self.start_vm() self.start_vm()
start_time = time.time()
self.run_vm_builder() self.run_vm_builder()
print ('Build completed in %d seconds' % round(time.time() - start_time))
if not opts.dont_shutdown: if not opts.dont_shutdown:
print ('Shutting down', self.VM_NAME) print ('Shutting down', self.VM_NAME)
subprocess.call(['ssh', self.VM_NAME]+self.SHUTDOWN_CMD) subprocess.call(['ssh', self.VM_NAME]+self.SHUTDOWN_CMD)