[KVM-AUTOTEST PATCH 16/28] KVM test: whql_submission: run a user specified shell command before the test

Michael Goldish
2010-12-27T16:01:43Z

client/tests/kvm/tests/whql_submission.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/tests/whql_submission.py b/client/tests/kvm/tests/whql_submission.py
index b1b7f25..8dd48b8 100644
--- a/client/tests/kvm/tests/whql_submission.py
+++ b/client/tests/kvm/tests/whql_submission.py
@@ -42,6 +42,11 @@ def run_whql_submission(test, params, env):
for svc in wtt_services.split():
kvm_test_utils.start_windows_service(session, svc)

+ # Run whql_pre_command
+ if params.get("whql_pre_command"):
+ session.cmd(params.get("whql_pre_command"),
+ int(params.get("whql_pre_command_timeout", 600)))
+
# Copy dsso_test_binary to the server
rss_file_transfer.upload(server_address, server_file_transfer_port,
dsso_test_binary, server_studio_path, timeout=60)
--
1.7.3.3