Add more logs 02/90202/1
authorDonghoon Shin <dhs.shin@samsung.com>
Thu, 29 Sep 2016 04:08:04 +0000 (13:08 +0900)
committerDonghoon Shin <dhs.shin@samsung.com>
Thu, 29 Sep 2016 04:08:04 +0000 (13:08 +0900)
Change-Id: I7696e7dd970bfe427bbb1287c38d04944987633a

litmus/device/device.py

index 6c7896d686c8510ce062849c669ffaa6fa5ea358..19c700cec4527ee2e31ae53fc3c521963ecb38c2 100644 (file)
@@ -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