From: Donghoon Shin Date: Thu, 29 Sep 2016 04:08:04 +0000 (+0900) Subject: Add more logs X-Git-Tag: upstream/0.3.3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F90202%2F1;p=tools%2Flitmus.git Add more logs Change-Id: I7696e7dd970bfe427bbb1287c38d04944987633a --- diff --git a/litmus/device/device.py b/litmus/device/device.py index 6c7896d..19c700c 100644 --- a/litmus/device/device.py +++ b/litmus/device/device.py @@ -200,7 +200,8 @@ class device(object): >>> dut.flash('platform.tar.gz') """ - logging.debug('================Flash binaries to device============') + logging.debug('==============Flash binaries to device {}===========' + .format(self.get_name())) logging.debug(filenames) if not filenames: @@ -234,7 +235,8 @@ class device(object): :returns str: stdout of sdb shell command """ - logging.debug('================Run a command on device=============') + logging.debug('==============Run a command on device {}============' + .format(self.get_name())) c = ['sdb', '-s', self.get_id(), 'shell'] c.extend(convert_single_item_to_list(command)) logging.debug(c) @@ -254,7 +256,10 @@ class device(object): :returns str: stdout of sdb push command """ - logging.debug('================Push a file to device===============') + logging.debug('==============Push a file to device {}==============' + .format(self.get_name())) + logging.debug('src from host : {}'.format(src)) + logging.debug('dest on dut: {}'.format(dest)) c = ['sdb', '-s', self.get_id(), 'push', src, dest] result = check_output(c, timeout=timeout) return result @@ -272,7 +277,10 @@ class device(object): :returns str: stdout of sdb push command """ - logging.debug('================Pull a file from device=============') + logging.debug('==============Pull a file from device {}============' + .format(self.get_name())) + logging.debug('src from dut : {}'.format(src)) + logging.debug('dest on host: {}'.format(dest)) c = ['sdb', '-s', self.get_id(), 'pull', src, dest] result = check_output(c, timeout=timeout) return result