Remove unused function
authorDonghoon Shin <dhs.shine@gmail.com>
Wed, 1 Feb 2017 23:36:42 +0000 (08:36 +0900)
committerDonghoon Shin <dhs.shine@gmail.com>
Wed, 1 Feb 2017 23:36:42 +0000 (08:36 +0900)
litmus/helper/helper.py

index 0b4eac3a468bf128d86947e87f083115e7eae56e..8a965cb6a26dcc3b8f8b9a3ac528f06d52b5e78a 100644 (file)
@@ -141,41 +141,11 @@ def tizen_snapshot_downloader(url, pattern_bin='tar.gz$',
     return filenames
 
 
-def install_plugin(dut, script, waiting=5, timeout=180):
-    """
-    Install tizen plugins on device.
-    This helper function turn on device and turn off device automatically.
-
-    :param device dut: device instance
-    :param str script: script path to install plugins on device
-    :param float waiting: wait time before installing plugins
-    :param float timeout: timeout
-
-    Example:
-        >>> from litmus.helper.helper import install_plugin
-        >>> install_plugin(dut,
-                           script='install-set/setup')
-    """
-    logging.debug('================Install plugins=================')
-    dut.on()
-
-    script_path = '/'.join(script.split('/')[:-1])
-    script_name = script.split('/')[-1]
-
-    call('cp -R {0}/* .'.format(script_path), shell=True)
-
-    time.sleep(waiting)
-
-    call('sh {0} {1}'.format(script_name, dut.get_id()).split(),
-         timeout=timeout)
-
-    dut.off()
-
-
 import tempfile
 import shutil
 from subprocess import DEVNULL
 
+
 def install_plugin_from_git(dut, url, branch, script,
                             waiting=5, timeout=180, commitid=None):
     """