1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 12:28:44 +00:00

target/logcatpoller: Make capitalisation consistent

This commit is contained in:
Marc Bonnici 2018-02-07 09:34:09 +00:00 committed by setrofim
parent 728057dbba
commit 22a2ccf7d6

View File

@ -104,7 +104,7 @@ class LogcatPoller(threading.Thread):
self.exc = None self.exc = None
def run(self): def run(self):
self.logger.debug('starting polling') self.logger.debug('Starting polling')
try: try:
while True: while True:
if self.stop_signal.is_set(): if self.stop_signal.is_set():
@ -116,7 +116,7 @@ class LogcatPoller(threading.Thread):
time.sleep(0.5) time.sleep(0.5)
except Exception: # pylint: disable=W0703 except Exception: # pylint: disable=W0703
self.exc = WorkerThreadError(self.name, sys.exc_info()) self.exc = WorkerThreadError(self.name, sys.exc_info())
self.logger.debug('polling stopped') self.logger.debug('Polling stopped')
def stop(self): def stop(self):
self.logger.debug('Stopping logcat polling') self.logger.debug('Stopping logcat polling')
@ -128,7 +128,7 @@ class LogcatPoller(threading.Thread):
raise self.exc # pylint: disable=E0702 raise self.exc # pylint: disable=E0702
def clear_buffer(self): def clear_buffer(self):
self.logger.debug('clearing logcat buffer') self.logger.debug('Clearing logcat buffer')
with self.lock: with self.lock:
self.target.clear_logcat() self.target.clear_logcat()
touch(self.buffer_file) touch(self.buffer_file)
@ -142,7 +142,7 @@ class LogcatPoller(threading.Thread):
touch(outfile) touch(outfile)
def close(self): def close(self):
self.logger.debug('closing poller') self.logger.debug('Closing poller')
if os.path.isfile(self.buffer_file): if os.path.isfile(self.buffer_file):
os.remove(self.buffer_file) os.remove(self.buffer_file)