From: Ondrej Lichtner <olichtne(a)redhat.com>
This file contains only a single function that is no longer used after
the previous commit. I am therefore removing it. It might be brought
back later when the wrapper script is being created but for now we don't
need it.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/SlaveUtils.py | 43 -------------------------------------------
1 file changed, 43 deletions(-)
delete mode 100644 lnst/Common/SlaveUtils.py
diff --git a/lnst/Common/SlaveUtils.py b/lnst/Common/SlaveUtils.py
deleted file mode 100644
index 7c82487..0000000
--- a/lnst/Common/SlaveUtils.py
+++ /dev/null
@@ -1,43 +0,0 @@
-"""
-Utils for general purpose.
-"""
-
-__autor__ = """
-jzupka(a)redhat.com (Jiri Zupka)
-"""
-
-import sys
-from lnst.Common.SshUtils import scp_to_remote, wait_for_login
-from lnst.Common.ShellProcess import ShellProcess
-
-def prepare_client_session(host, port, login, passwd=None, command=None,
- prompt=None, install_path=None, test_dir=None):
- """
- Copy nettest to client start client part
- and create session with client part.
- @param command: Command which is started after login to guest, in root
- path of installed test.
- @param prompt: Prompt in guest side which means that guest side stared
- correctly.
- @param test_dir: Path in install_path where is installed testing framework.
- @param install_path: Path to create and install test_dir folder.
- """
- if install_path is None:
- install_path = "/tmp"
- if test_dir is None:
- test_dir = "lnst"
-
- s = ShellProcess("tar -cjf lnst.tar.bz2 --exclude *.pyc --exclude
'Logs/*' --exclude '.git/*' --exclude 'lnst.tar.bz2' -C
'%s' ./" % sys.path[0])
- s.wait()
- scp_to_remote(host, port, login, passwd,
- "lnst.tar.bz2","/%s/" % (install_path))
- wait_for_login(host, port, login, passwd, "PASS:",
- command = "mkdir -p /%(ip)s/%(td)s && tar -xvjf "
- "/%(ip)s/lnst.tar.bz2 -C /%(ip)s/%(td)s && echo
PASS:" %
- {"td":test_dir, "ip":install_path} , timeout=60)
-
- if prompt is None:
- prompt = "Started"
- command = "cd /%s/%s/ && ./%s" % (install_path, test_dir, command)
- return wait_for_login(host, port, login, passwd, prompt,
- command=command, timeout=10)
--
1.7.11.7