MCPcopy Create free account
hub / github.com/apache/impala / sharded

Method sharded

docker/test-with-docker.py:321–333  ·  view source on GitHub ↗

Returns a list of sharded copies of the list. key is the name of the variable which needs to be appended with "--shard-tests=..."

(self, shards)

Source from the content-addressed store, hash-verified

319 return r
320
321 def sharded(self, shards):
322 """Returns a list of sharded copies of the list.
323
324 key is the name of the variable which needs to be appended with "--shard-tests=..."
325 """
326 # RUN_TESTS_ARGS
327 ret = []
328 for i in range(1, shards + 1):
329 s = self.copy("%s_%d_of_%d" % (self.name, i, shards))
330 s.envs[self.sharding_variable] = self.envs.get(self.sharding_variable, "") \
331 + " --shard_tests=%s/%s" % (i, shards)
332 ret.append(s)
333 return ret
334
335# Definitions of all known suites:
336be_test = Suite("BE_TEST")

Callers 1

__init__Method · 0.80

Calls 4

copyMethod · 0.95
rangeFunction · 0.85
getMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected