diff mbox

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

Message ID 1293465715-16599-16-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Dec. 27, 2010, 4:01 p.m. UTC
None
diff mbox

Patch

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)