Skip to content

Commit

Permalink
HIVE-2650 [jira] Parallel test commands that include cd fail
Browse files Browse the repository at this point in the history
(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

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1213519 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
John Sichi committed Dec 13, 2011
1 parent d9cdf2c commit e3b72ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutils/ptest/Ssh.py
Expand Up @@ -60,7 +60,7 @@ def run(self, cmd, warn_only = False, quiet = False, vewy_quiet = False,
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:
Expand Down

0 comments on commit e3b72ff

Please sign in to comment.