diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-09-08 22:29:11 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-09-08 22:29:11 -0400 |
commit | 47570f0e9a233308c709d992ffeef7aab02a133c (patch) | |
tree | b27a32bfb88002f4e97d356350fc9fc7e7f24c01 | |
parent | f3d5efa2e21940305c07e3ce75f8883f50cfffe9 (diff) | |
download | rpmbuild-remote-47570f0e9a233308c709d992ffeef7aab02a133c.tar.gz rpmbuild-remote-47570f0e9a233308c709d992ffeef7aab02a133c.tar.xz rpmbuild-remote-47570f0e9a233308c709d992ffeef7aab02a133c.zip |
Add timing for build
-rw-r--r-- | rpmbuild-remote.py | 3 |
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() |