From: Michael Goldish <mgoldish@redhat.com>
To: autotest@test.kernel.org, kvm@vger.kernel.org
Cc: Michael Goldish <mgoldish@redhat.com>
Subject: [KVM-AUTOTEST PATCH 3/5] KVM test: timedrift: first open ssh/rss sessions with the guest, then start load
Date: Tue, 23 Mar 2010 21:09:59 +0200 [thread overview]
Message-ID: <1269371401-9341-3-git-send-email-mgoldish@redhat.com> (raw)
In-Reply-To: <1269371401-9341-2-git-send-email-mgoldish@redhat.com>
Currently, for each guest "load session", a login is performed, followed
immediately by sending the command that initiates the load. When the second
login is attempted, the guest is already loaded by the first session, and
therefore may respond slowly to the login request.
This patch makes the test open all load sessions first, and then send the load
command to all open sessions.
Signed-off-by: Michael Goldish <mgoldish@redhat.com>
---
client/tests/kvm/tests/timedrift.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/client/tests/kvm/tests/timedrift.py b/client/tests/kvm/tests/timedrift.py
index b3e8770..194f09c 100644
--- a/client/tests/kvm/tests/timedrift.py
+++ b/client/tests/kvm/tests/timedrift.py
@@ -98,8 +98,9 @@ def run_timedrift(test, params, env):
raise error.TestFail("Could not log into guest")
load_session.set_output_prefix("(guest load %d) " % i)
load_session.set_output_func(logging.debug)
- load_session.sendline(guest_load_command)
guest_load_sessions.append(load_session)
+ for load_session in guest_load_sessions:
+ load_session.sendline(guest_load_command)
# Run some load on the host
logging.info("Starting load on host...")
--
1.5.4.1
next prev parent reply other threads:[~2010-03-23 19:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 19:09 [KVM-AUTOTEST PATCH 1/5] KVM test: remote_login(): if rss.exe says "Please wait", wait Michael Goldish
2010-03-23 19:09 ` [KVM-AUTOTEST PATCH 2/5] KVM test: tests_base.cfg.sample: add /f option to all Windows shutdown commands Michael Goldish
2010-03-23 19:09 ` Michael Goldish [this message]
2010-03-23 19:10 ` [KVM-AUTOTEST PATCH 4/5] KVM test: stress_boot: make boot timeout controllable Michael Goldish
2010-03-23 19:10 ` [KVM-AUTOTEST PATCH 5/5] KVM test: abort-on-error mode Michael Goldish
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1269371401-9341-3-git-send-email-mgoldish@redhat.com \
--to=mgoldish@redhat.com \
--cc=autotest@test.kernel.org \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.