MCPcopy Create free account
hub / github.com/apache/thrift / build_command

Method build_command

test/crossrunner/test.py:75–94  ·  view source on GitHub ↗
(self, port)

Source from the content-addressed store, hash-verified

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
97class TestEntry(object):

Callers 1

exec_contextFunction · 0.80

Calls 4

_transport_argsMethod · 0.95
_socket_argsMethod · 0.95
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected