Skip to content
Snippets Groups Projects
Commit 999dfabc authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added some doc to tester

parent fdf82f6e
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,9 @@ Please contact UbiCast sales team (sales@ubicast.eu) to renew the support contra ...@@ -27,6 +27,9 @@ Please contact UbiCast sales team (sales@ubicast.eu) to renew the support contra
class Logger(object): class Logger(object):
'''
Class to duplicate output in a buffer
'''
def __init__(self, stream, log_buffer): def __init__(self, stream, log_buffer):
self.stream = stream self.stream = stream
self.log_buffer = log_buffer self.log_buffer = log_buffer
...@@ -47,6 +50,9 @@ sys.stderr = sys.stdout ...@@ -47,6 +50,9 @@ sys.stderr = sys.stdout
def raid_idle(): def raid_idle():
'''
Function to test that the RAID is not running any task
'''
idle = True idle = True
devs = glob.glob('/sys/block/md*/md/sync_action') devs = glob.glob('/sys/block/md*/md/sync_action')
for d in devs: for d in devs:
...@@ -59,6 +65,9 @@ def raid_idle(): ...@@ -59,6 +65,9 @@ def raid_idle():
class Tester(): class Tester():
'''
Main tester class
'''
MAX_LOG_FILES = 50 MAX_LOG_FILES = 50
def __init__(self): def __init__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment