(self, port)
| 73 | }.get(transport, None) |
| 74 | |
| 75 | def build_command(self, port): |
| 76 | cmd = copy.copy(self._base_command) |
| 77 | args = copy.copy(self._extra_args2) |
| 78 | args.append('--protocol=' + self.protocol) |
| 79 | args.append('--transport=' + self.transport) |
| 80 | transport_args = self._transport_args(self.transport) |
| 81 | if transport_args: |
| 82 | args += transport_args |
| 83 | socket_args = self._socket_args(self.socket, port) |
| 84 | if socket_args: |
| 85 | args += socket_args |
| 86 | args.append('--port=%d' % port) |
| 87 | if self._join_args: |
| 88 | cmd.append('%s' % " ".join(args)) |
| 89 | else: |
| 90 | cmd.extend(args) |
| 91 | if self._extra_args: |
| 92 | cmd.extend(self._extra_args) |
| 93 | self.command = cmd |
| 94 | return self.command |
| 95 | |
| 96 | |
| 97 | class TestEntry(object): |
no test coverage detected