Change private function _sdb_root_on to public function sdb_root_on 64/104264/1
authorDonghoon Shin <dhs.shin@samsung.com>
Tue, 13 Dec 2016 02:34:16 +0000 (11:34 +0900)
committerDonghoon Shin <dhs.shin@samsung.com>
Tue, 13 Dec 2016 02:36:56 +0000 (11:36 +0900)
Change-Id: I26f06520715d68f48584e478df13eccfbe479924

CHANGES.txt
debian/changelog
litmus/device/device.py
litmus/device/deviceartik10.py
litmus/device/devicestandalone.py

index 27808bb..d928568 100644 (file)
@@ -47,3 +47,4 @@ Version 0.3.3   11 Oct 2016
 Version 0.3.4   21 Oct 2016
 ---------------------------
 - Update flash method for tw1 to skip passing parameter 'flasher'
+- Change private function _sdb_root_on to public function sdb_root_on
index 6563309..bda0fa9 100644 (file)
@@ -1,6 +1,7 @@
 litmus (0.3.4-1) unstable; urgency=low
 
   * Update flash method for tw1 to skip passing parameter 'flasher'
+  * Change private function _sdb_root_on to public function sdb_root_on
 
  -- Donghoon Shin <dhs.shin@samsung.com>  Fri, 21 Oct 2016 11:36:00 +0900
 
index 3a62151..811f14c 100644 (file)
@@ -145,7 +145,7 @@ class device(object):
                 self._login_uart_shell()
                 self._set_sdb_deviceid()
                 self._attach_sdb()
-                self._sdb_root_on()
+                self.sdb_root_on()
                 return
             except KeyboardInterrupt:
                 self.off(1)
@@ -646,8 +646,10 @@ class device(object):
         """docstring for _detach_sdb"""
         pass
 
-    def _sdb_root_on(self):
-        """docstring for _sdb_root_on"""
+    def sdb_root_on(self):
+        """docstring for sdb_root_on"""
+        logging.debug('=================sdb root on for {}================='
+                      .format(self.get_name()))
         call('sdb -s {} root on'.format(self.get_id()).split(), timeout=10)
         time.sleep(0.5)
 
index d8990c2..7f9c3c2 100644 (file)
@@ -138,7 +138,7 @@ class deviceartik10(device):
                 self._login_uart_shell()
                 self._set_sdb_deviceid()
                 self._attach_sdb()
-                self._sdb_root_on()
+                self.sdb_root_on()
                 return
             except KeyboardInterrupt:
                 raise Exception('Keyboard interrupt.')
index 4b0d61e..99ed73f 100644 (file)
@@ -79,7 +79,7 @@ class devicestandalone(device):
 
         self.start_sdb_server()
         if self.is_on():
-            self._sdb_root_on()
+            self.sdb_root_on()
             self.run_cmd('reboot -f', timeout=20)
         wait_for_boot = booting_time if booting_time else self._booting_time
         for loop in range(wait_for_boot):
@@ -87,7 +87,7 @@ class devicestandalone(device):
                           .format(wait_for_boot - loop))
             time.sleep(1)
         self.start_sdb_server()
-        self._sdb_root_on()
+        self.sdb_root_on()
 
     def off(self, powercut_delay=2):
         """
@@ -125,7 +125,7 @@ class devicestandalone(device):
         if not filenames:
             raise Exception('There\'s no file to flash.')
         try:
-            self._sdb_root_on()
+            self.sdb_root_on()
             self._acquire_global_lock()
             self.run_cmd('reboot -f download', timeout=20)
             time.sleep(waiting)