I ran into a minor issue, while I was working with LNST. If you execute
nettestctl.py with the -e option that automatically starts the slaves,
they are run from the directory that is default after logging with
ssh (usually user's home dir). This makes it hard to use paths
relative to the install_path in the tests.
I changed the command so nettestslave.py gets executed from the install
directory, where it resides, so relative paths are valid.
Changed the way nettestslave.py is executed so the
cwd is the root of lnst install, not where ssh logs
to by default (which is usually root home dir).
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
Common/SlaveUtils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Common/SlaveUtils.py b/Common/SlaveUtils.py
index d8db772..6cb7cc0 100644
@@ -37,6 +37,6 @@ def prepare_client_session(host, port, login,
if prompt is None:
prompt = "Started"
- command = "/%s/%s/%s" % (install_path, test_dir, command)
+ command = "cd /%s/%s/ && ./%s" % (install_path, test_dir, command)
return wait_for_login(host, port, login, passwd, prompt,
\ No newline at end of file
LNST-developers mailing list