* [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly
@ 2010-09-10 15:57 Lucas Meneghel Rodrigues
2010-09-10 16:04 ` Avi Kivity
2010-09-10 16:06 ` Lucas Meneghel Rodrigues
0 siblings, 2 replies; 4+ messages in thread
From: Lucas Meneghel Rodrigues @ 2010-09-10 15:57 UTC (permalink / raw)
To: autotest; +Cc: kvm, kwolf, lcapitulino, Lucas Meneghel Rodrigues
There's a small bug on the qemu sample testset for KVM autotest:
We need to append -enable-kvm as extra params to the qemu command
line, not replace all extra params. Small bug, renders the unattended
install unusable for folks trying qemu instead of qemu-kvm.
Thanks to Kevin Wolf for having found this problem.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
client/tests/fsfuzzer/control | 2 +-
client/tests/kvm/tests.cfg.sample | 2 +-
scheduler/scheduler_models.py | 14 +++++++++-----
3 files changed, 11 insertions(+), 7 deletions(-)
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
--
1.7.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly
2010-09-10 15:57 [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly Lucas Meneghel Rodrigues
@ 2010-09-10 16:04 ` Avi Kivity
2010-09-10 16:06 ` Lucas Meneghel Rodrigues
1 sibling, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2010-09-10 16:04 UTC (permalink / raw)
To: Lucas Meneghel Rodrigues; +Cc: autotest, kvm, kwolf, lcapitulino
On 09/10/2010 06:57 PM, Lucas Meneghel Rodrigues wrote:
> There's a small bug on the qemu sample testset for KVM autotest:
> We need to append -enable-kvm as extra params to the qemu command
> line, not replace all extra params. Small bug, renders the unattended
> install unusable for folks trying qemu instead of qemu-kvm.
>
>
> @@ -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"
Appears to be unrelated.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly
2010-09-10 15:57 [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly Lucas Meneghel Rodrigues
2010-09-10 16:04 ` Avi Kivity
@ 2010-09-10 16:06 ` Lucas Meneghel Rodrigues
1 sibling, 0 replies; 4+ messages in thread
From: Lucas Meneghel Rodrigues @ 2010-09-10 16:06 UTC (permalink / raw)
To: autotest; +Cc: kvm, kwolf, lcapitulino
On Fri, 2010-09-10 at 12:57 -0300, Lucas Meneghel Rodrigues wrote:
> There's a small bug on the qemu sample testset for KVM autotest:
> We need to append -enable-kvm as extra params to the qemu command
> line, not replace all extra params. Small bug, renders the unattended
> install unusable for folks trying qemu instead of qemu-kvm.
Please disregard this one, I'll send the correct version.
> Thanks to Kevin Wolf for having found this problem.
>
> Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> ---
> client/tests/fsfuzzer/control | 2 +-
> client/tests/kvm/tests.cfg.sample | 2 +-
> scheduler/scheduler_models.py | 14 +++++++++-----
> 3 files changed, 11 insertions(+), 7 deletions(-)
>
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly
@ 2010-09-10 16:08 Lucas Meneghel Rodrigues
0 siblings, 0 replies; 4+ messages in thread
From: Lucas Meneghel Rodrigues @ 2010-09-10 16:08 UTC (permalink / raw)
To: autotest; +Cc: kvm, kwolf, lcapitulino, Lucas Meneghel Rodrigues
There's a small bug on the qemu sample testset for KVM autotest:
We need to append -enable-kvm as extra params to the qemu command
line, not replace all extra params. Small bug, renders the unattended
install unusable for folks trying qemu instead of qemu-kvm.
Thanks to Kevin Wolf for having found this problem.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
client/tests/kvm/tests.cfg.sample | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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:
--
1.7.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-10 16:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-10 15:57 [PATCH] KVM test: tests.cfg.sample: add params to qemu command line properly Lucas Meneghel Rodrigues
2010-09-10 16:04 ` Avi Kivity
2010-09-10 16:06 ` Lucas Meneghel Rodrigues
-- strict thread matches above, loose matches on Subject: below --
2010-09-10 16:08 Lucas Meneghel Rodrigues
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox