Pass the user autoserv is running as through to the client.
This can be used to su back to the running user on the remote
end for file access, etc
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3662 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index b0a83eb..5be18e7 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -405,6 +405,7 @@
args.append('-l')
if self.host.hostname:
args.append('--hostname=%s' % self.host.hostname)
+ args.append('--user=%s' % os.environ['LOGNAME'])
args.append(self.remote_control_file)
return args