summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-08 22:29:11 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-08 22:29:11 -0400
commit47570f0e9a233308c709d992ffeef7aab02a133c (patch)
treeb27a32bfb88002f4e97d356350fc9fc7e7f24c01 /rpmbuild-remote.py
parentf3d5efa2e21940305c07e3ce75f8883f50cfffe9 (diff)
downloadrpmbuild-remote-47570f0e9a233308c709d992ffeef7aab02a133c.zip
rpmbuild-remote-47570f0e9a233308c709d992ffeef7aab02a133c.tar.gz
rpmbuild-remote-47570f0e9a233308c709d992ffeef7aab02a133c.tar.xz
Add timing for build
Diffstat (limited to 'rpmbuild-remote.py')
-rw-r--r--rpmbuild-remote.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index d537979..db612ac 100644
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -141,7 +141,10 @@ def execute_jobs(opts, system, jobs):
file = os.path.basename(job[0])
LOG.info("Building %s from %d souces" % (file, len(job) - 1))
cmd = "rpmbuild -ba rpmbuild/SPECS/%s" % file)
+ start = time.clock()
files = session.exec_command(cmd)
+ finish = time.clock()
+ LOG.info("Completed build %.03f seconds" % (finish - start))
# Write output files
# Fetch RPM files
session.close()