Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions install_to_8.0.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
in call killall.bat
cd package
del /Q /S cloudshell\cm\customscript\*.pyc
"C:\Work\Tfs\QualiSystems\Branches\8.0\Drop\TestShell\ExecutionServer\python\2.7.10\python.exe" setup.py develop
cd ..\
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@


class LinuxScriptExecutor(IScriptExecutor):
PasswordEnvVarName = 'cs_machine_pass'

class ExecutionResult(object):
def __init__(self, exit_code, std_out, std_err):
self.std_err = std_err
Expand Down Expand Up @@ -123,6 +125,8 @@ def run_script(self, tmp_folder, script_file, env_vars, output_writer):
code = ''
for key, value in (env_vars or {}).iteritems():
code += 'export %s=%s;' % (key,self._escape(value))
if self.target_host.password:
code += 'export %s=%s;' % (self.PasswordEnvVarName, self._escape(self.target_host.password))
code += 'sh '+tmp_folder+'/'+script_file.name
result = self._run_cancelable(code)
output_writer.write(result.std_out)
Expand Down