You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jv...@apache.org on 2011/12/13 01:30:15 UTC
svn commit: r1213519 - /hive/trunk/testutils/ptest/Ssh.py
Author: jvs
Date: Tue Dec 13 00:30:15 2011
New Revision: 1213519
URL: http://svn.apache.org/viewvc?rev=1213519&view=rev
Log:
HIVE-2650 [jira] Parallel test commands that include cd fail
(Marek Sapota via John Sichi)
Summary: Add quotes around bash -c to fix commands using cd.
Test Plan: EMPTY
Reviewers: JIRA, jsichi
Reviewed By: jsichi
CC: mareksapotafb, jsichi
Differential Revision: 801
Modified:
hive/trunk/testutils/ptest/Ssh.py
Modified: hive/trunk/testutils/ptest/Ssh.py
URL: http://svn.apache.org/viewvc/hive/trunk/testutils/ptest/Ssh.py?rev=1213519&r1=1213518&r2=1213519&view=diff
==============================================================================
--- hive/trunk/testutils/ptest/Ssh.py (original)
+++ hive/trunk/testutils/ptest/Ssh.py Tue Dec 13 00:30:15 2011
@@ -60,7 +60,7 @@ class SSHConnection():
quiet = True
else:
print(cmd + '\n')
- cmd = "ssh -nT '{0}' bash -c '{1}'".format(self.host, cmd)
+ cmd = '''ssh -nT '{0}' "bash -c '{1}'"'''.format(self.host, cmd)
try:
return Process.run(cmd, quiet, abandon_output)
except Exception as e: