From patchwork Fri Sep 10 15:57:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 169862 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8AFvfOl012301 for ; Fri, 10 Sep 2010 15:57:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754925Ab0IJP5i (ORCPT ); Fri, 10 Sep 2010 11:57:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33060 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754279Ab0IJP5h (ORCPT ); Fri, 10 Sep 2010 11:57:37 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8AFvakC004553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Sep 2010 11:57:36 -0400 Received: from freedom.redhat.com (vpn-9-85.rdu.redhat.com [10.11.9.85]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8AFvYQH004905; Fri, 10 Sep 2010 11:57:35 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, kwolf@redhat.com, lcapitulino@redhat.com, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly Date: Fri, 10 Sep 2010 12:57:32 -0300 Message-Id: <1284134252-16976-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Sep 2010 15:57:41 +0000 (UTC) diff --git a/client/tests/fsfuzzer/control b/client/tests/fsfuzzer/control index 8c8c7e8..55aa036 100644 --- a/client/tests/fsfuzzer/control +++ b/client/tests/fsfuzzer/control @@ -18,4 +18,4 @@ WARNING: Currently this test may not work, and it may break subsequent other test runs. ''' -job.run_test('fsfuzzer') +job.run_test('fsfuzzer', fstype='ext4') diff --git a/client/tests/kvm/tests.cfg.sample b/client/tests/kvm/tests.cfg.sample index 12e1d7a..ce3e307 100644 --- a/client/tests/kvm/tests.cfg.sample +++ b/client/tests/kvm/tests.cfg.sample @@ -58,7 +58,7 @@ variants: only Fedora.13.64 only unattended_install.cdrom boot shutdown # qemu needs -enable-kvm on the cmdline - extra_params = ' -enable-kvm' + extra_params += ' -enable-kvm' # Runs qemu-kvm, f13 64 bit guest OS, install, boot, shutdown - @qemu_kvm_f13_quick: diff --git a/scheduler/scheduler_models.py b/scheduler/scheduler_models.py index 4df4194..e32e727 100644 --- a/scheduler/scheduler_models.py +++ b/scheduler/scheduler_models.py @@ -920,11 +920,15 @@ class Job(DBObject): WHERE afe_job_id = %s """ % self.id) - t_begin, t_end = time_row[0] - delta = t_end - t_begin - minutes, seconds = divmod(delta.seconds, 60) - hours, minutes = divmod(minutes, 60) - stats['execution_time'] = "%02d:%02d:%02d" % (hours, minutes, seconds) + if time_row: + t_begin, t_end = time_row[0] + delta = t_end - t_begin + minutes, seconds = divmod(delta.seconds, 60) + hours, minutes = divmod(minutes, 60) + stats['execution_time'] = "%02d:%02d:%02d" % (hours, minutes, + seconds) + else: + stats['execution_time'] = "00:00:00" return stats