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

Side by Side Diff: client/virt/tests/ioquit.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/iofuzz.py ('k') | client/virt/tests/iozone_windows.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, random 1 import logging, time, random
2 2
3 3
4 def run_ioquit(test, params, env): 4 def run_ioquit(test, params, env):
5 """ 5 """
6 Emulate the poweroff under IO workload(dd so far) using kill -9. 6 Emulate the poweroff under IO workload(dd so far) using kill -9.
7 7
8 @param test: Kvm test object 8 @param test: Kvm test object
9 @param params: Dictionary with the test parameters. 9 @param params: Dictionary with the test parameters.
10 @param env: Dictionary with test environment. 10 @param env: Dictionary with test environment.
(...skipping 11 matching lines...) Expand all
22 session2.cmd(check_cmd, timeout=60) 22 session2.cmd(check_cmd, timeout=60)
23 23
24 logging.info("Sleep for a while") 24 logging.info("Sleep for a while")
25 time.sleep(random.randrange(30, 100)) 25 time.sleep(random.randrange(30, 100))
26 session2.cmd(check_cmd, timeout=60) 26 session2.cmd(check_cmd, timeout=60)
27 logging.info("Kill the virtual machine") 27 logging.info("Kill the virtual machine")
28 vm.process.close() 28 vm.process.close()
29 finally: 29 finally:
30 session.close() 30 session.close()
31 session2.close() 31 session2.close()
OLDNEW
« no previous file with comments | « client/virt/tests/iofuzz.py ('k') | client/virt/tests/iozone_windows.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698