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

Side by Side Diff: client/virt/virt_test_setup.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/virt_step_editor.py ('k') | client/virt/virt_test_utils.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 """ 1 """
2 Library to perform pre/post test setup for KVM autotest. 2 Library to perform pre/post test setup for KVM autotest.
3 """ 3 """
4 import os, logging 4 import os, logging
5 from autotest_lib.client.common_lib import error 5 from autotest_lib.client.common_lib import error
6 from autotest_lib.client.bin import utils 6 from autotest_lib.client.bin import utils
7 7
8 8
9 class HugePageConfig(object): 9 class HugePageConfig(object):
10 def __init__(self, params): 10 def __init__(self, params):
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 @error.context_aware 99 @error.context_aware
100 def cleanup(self): 100 def cleanup(self):
101 error.context("trying to dealocate hugepage memory") 101 error.context("trying to dealocate hugepage memory")
102 try: 102 try:
103 utils.system("umount %s" % self.hugepage_path) 103 utils.system("umount %s" % self.hugepage_path)
104 except error.CmdError: 104 except error.CmdError:
105 return 105 return
106 utils.system("echo 0 > %s" % self.kernel_hp_file) 106 utils.system("echo 0 > %s" % self.kernel_hp_file)
107 logging.debug("Hugepage memory successfuly dealocated") 107 logging.debug("Hugepage memory successfuly dealocated")
OLDNEW
« no previous file with comments | « client/virt/virt_step_editor.py ('k') | client/virt/virt_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698