@@ -94,7 +94,7 @@ def test_memory(self):
94
94
"""
95
95
Memory test
96
96
"""
97
- def cleanup (supress = False ):
97
+ def cleanup (suppress = False ):
98
98
""" cleanup """
99
99
logging .debug ("test_memory: Cleanup" )
100
100
err = ""
@@ -104,7 +104,7 @@ def cleanup(supress=False):
104
104
utils .system ("swapon -a" )
105
105
106
106
if err :
107
- if supress :
107
+ if suppress :
108
108
logging .warn ("Some parts of cleanup failed%s" , err )
109
109
else :
110
110
raise error .TestFail ("Some parts of cleanup failed%s" %
@@ -214,11 +214,11 @@ def cleanup(supress=False):
214
214
filled = int (out [- 2 ].split ()[1 ][:- 1 ])
215
215
if mem / 2 > 1.5 * filled :
216
216
logging .error ("test_memory: Limit = %dM, Filled = %dM (+ "
217
- "python overhead upto 1/3 (mem))" , mem / 2 ,
217
+ "python overhead up to 1/3 (mem))" , mem / 2 ,
218
218
filled )
219
219
else :
220
220
logging .debug ("test_memory: Limit = %dM, Filled = %dM (+ "
221
- "python overhead upto 1/3 (mem))" , mem / 2 ,
221
+ "python overhead up to 1/3 (mem))" , mem / 2 ,
222
222
filled )
223
223
logging .debug ("test_memory: Memfill mem only cgroup passed" )
224
224
@@ -256,11 +256,11 @@ def cleanup(supress=False):
256
256
filled = int (out [- 2 ].split ()[1 ][:- 1 ])
257
257
if mem / 2 > 1.5 * filled :
258
258
logging .error ("test_memory: Limit = %dM, Filled = %dM (+ "
259
- "python overhead upto 1/3 (memsw))" , mem / 2 ,
259
+ "python overhead up to 1/3 (memsw))" , mem / 2 ,
260
260
filled )
261
261
else :
262
262
logging .debug ("test_memory: Limit = %dM, Filled = %dM (+ "
263
- "python overhead upto 1/3 (memsw))" , mem / 2 ,
263
+ "python overhead up to 1/3 (memsw))" , mem / 2 ,
264
264
filled )
265
265
logging .debug ("test_memory: Memfill mem + swap cgroup passed" )
266
266
@@ -274,7 +274,7 @@ def test_cpuset(self):
274
274
Cpuset test
275
275
1) Initiate CPU load on CPU0, than spread into CPU* - CPU0
276
276
"""
277
- def cleanup (supress = False ):
277
+ def cleanup (suppress = False ):
278
278
""" cleanup """
279
279
logging .debug ("test_cpuset: Cleanup" )
280
280
err = ""
@@ -293,7 +293,7 @@ def cleanup(supress=False):
293
293
if item .rm_cgroup (pwd ):
294
294
err += "\n Can't remove cgroup direcotry"
295
295
if err :
296
- if supress :
296
+ if suppress :
297
297
logging .warn ("Some parts of cleanup failed%s" , err )
298
298
else :
299
299
raise error .TestFail ("Some parts of cleanup failed%s"
@@ -385,7 +385,7 @@ def test_cpu(self):
385
385
tests cpu subsystem.
386
386
Currently only smoke and many_cgroups test is written
387
387
"""
388
- def cleanup (supress = False ):
388
+ def cleanup (suppress = False ):
389
389
""" cleanup """
390
390
logging .debug ("test_cpu: Cleanup" )
391
391
err = []
@@ -409,7 +409,7 @@ def cleanup(supress=False):
409
409
err += "\n Can't remove Cgroup: %s" % failure_detail
410
410
411
411
if err :
412
- if supress :
412
+ if suppress :
413
413
logging .warn ("Some parts of cleanup failed%s" , err )
414
414
else :
415
415
raise error .TestFail ("Some parts of cleanup failed%s"
0 commit comments