Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30996

Add shell_binary feature to remote_operations.py

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • TIG 2017-10-02

      The file buildscripts/remote_operations.py will invoke a remote shell in the shell method via the ssh command as

                  cmd = "ssh {} {} /bin/bash -c \"{}'{}'\"".format(
                      self.ssh_options,
                      self.user_host,
                      dollar,
                      operation_param)
      

      It should support a new option to specify which remote shell to use:

                  cmd = "ssh {} {} {} -c \"{}'{}'\"".format(
                      self.ssh_options,
                      self.user_host,
                      self.shell_binary,
                      dollar,
                      operation_param)
      

      New tests should be added to buildscripts/tests/test_remote_operations.py

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: