commit 0c21e17ac5d1e2f8f1995b31c1f2e1ac6056662b
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Mon Apr 2 11:25:21 2012 +0200
SlaveUtils: Changed nettestslave.py exec command
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..e7fdf3d 100644
--- a/Common/SlaveUtils.py
+++ b/Common/SlaveUtils.py
@@ -37,6 +37,6 @@ def prepare_client_session(host, port, login, passwd=None,
command=None,
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,
command=command, timeout=10)
\ No newline at end of file
Show replies by date