Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: client/virt/tests/yum_update.py

Issue 6883246: Merge autotest upstream from @5318 ~ @5336 (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/virt/tests/whql_submission.py ('k') | client/virt/virt_env_process.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import logging, time 1 import logging, time
2 2
3 3
4 def internal_yum_update(session, command, prompt, timeout): 4 def internal_yum_update(session, command, prompt, timeout):
5 """ 5 """
6 Helper function to perform the yum update test. 6 Helper function to perform the yum update test.
7 7
8 @param session: shell session stablished to the host 8 @param session: shell session stablished to the host
9 @param command: Command to be sent to the shell session 9 @param command: Command to be sent to the shell session
10 @param prompt: Machine prompt 10 @param prompt: Machine prompt
(...skipping 29 matching lines...) Expand all
40 vm = env.get_vm(params["main_vm"]) 40 vm = env.get_vm(params["main_vm"])
41 vm.verify_alive() 41 vm.verify_alive()
42 timeout = int(params.get("login_timeout", 360)) 42 timeout = int(params.get("login_timeout", 360))
43 session = vm.wait_for_login(timeout=timeout) 43 session = vm.wait_for_login(timeout=timeout)
44 44
45 internal_yum_update(session, "yum update", params.get("shell_prompt"), 600) 45 internal_yum_update(session, "yum update", params.get("shell_prompt"), 600)
46 internal_yum_update(session, "yum update kernel", 46 internal_yum_update(session, "yum update kernel",
47 params.get("shell_prompt"), 600) 47 params.get("shell_prompt"), 600)
48 48
49 session.close() 49 session.close()
OLDNEW
« no previous file with comments | « client/virt/tests/whql_submission.py ('k') | client/virt/virt_env_process.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698