From d18421dd4559c5f334539fe5936a7e4182376e96 Mon Sep 17 00:00:00 2001 From: Donghoon Shin Date: Thu, 29 Sep 2016 13:08:04 +0900 Subject: [PATCH] Add more logs Change-Id: I7696e7dd970bfe427bbb1287c38d04944987633a --- litmus/device/device.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 -- 2.34.1