From: Donghoon Shin Date: Thu, 29 Sep 2016 03:53:49 +0000 (+0900) Subject: Add more logs X-Git-Tag: 0.3.3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b607ce5ab7ea84ba895b055d262832dd599885d0;p=tools%2Flitmus.git Add more logs --- 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